DCA
In a LONG position, averaging occurs when a buy ↑ signal is received, for example:
{
"name": "Hook 196",
"secret": "2ehiexig0r5",
"side": "buy",
"symbol": "{{ticker}}"
}
In a SHORT position, averaging occurs when a sell↓ signal arrives, for example:
{
"name": "Hook 196",
"secret": "2ehiexig0r5",
"side": "sell",
"symbol": "{{ticker}}"
}

Enabled

If enabled, when a signal arrives, an averaging order will be created in an open position. If the position is not open, then the signal will be ignored.
A tick to the right of the option name means that the value will be taken from the received signal from Tradingview, and not from the terminal settings.

Averaging with opened CA

If disabled, then averaging will not occur if there are unfilled averaging orders in the position.

Order amount

  • Amount The field to the right of the selection indicates the number of tokens (contracts) of the created order. For example, if 100 is specified in the XRPUSDT pair, then an order for 100 XRP will be created
  • Sum (volume) Specifies the Sum (volume) of the created order. For example, if 0.01 is specified in the LTCBTC pair, then an order with a volume of 0.01 BTC will be created
  • Sum (volume), USD Specifies the Sum (volume) of the created order in dollar terms. For example, if 100 is specified in the LTCBTC pair, then an order with a volume equivalent to $100 will be created
  • Balance, % An order will be created as a percentage of the total balance (available wallet balance + position volume + PnL positions). For example, in the wallet 1000 USDT, in positions 2000 USDT and PNL 100 USDT and we indicate 10% of the balance, then the order will be created for the amount (1000 + 2000 + 100) x 10 / 100 = 310 USDT
  • Balance% х Leverage The same as in the previous option, only the amount received is multiplied by the leverage. From the example above, with leverage = 5x, the order amount will be 1550 USDT
  • Strategy amount Selecting this option will insert the {{strategy.order.contracts}} placeholder into the signal message and the option will be checked to the left
  • Position sum, % The size of the averaging position is calculated as a % of the current position. For example, if you specify 100, then averaging will take place for the same amount that is currently open in the position.

Maximum position size

The position will not be averaged if the sum of the averaging in the signal + the sum of the position exceeds the specified value. Leave blank to remove the limit.

• Maximum value

An additional field that is activated when adding a limit on the maximum position size.
Leave blank to remove the limit.

Single order / Grid

  • Single order On a signal, 1 order will be created
  • Scaled grid On signal, a Scaled mesh will be created.
If you need to enter a trade and add orders for averaging in one opening signal, then you need to use a grid of orders where the first order has a small negative offset, for example, -0.2%
If an order grid is selected, additional options available:

• Number of real orders

If a virtual order is selected, then an option is available that allows you to specify how many real orders will be placed at the beginning of the grid. When an order is executed, the next virtual one is replaced by a real one.

• Levels auto update

Disable by default If a timeframe is set, then at the close of the candle, the distance from the close price (or the maximum value of the candle) to the price of the first order in the grid will be checked, and the system will pull all orders closer to the trend if this distance has become greater than the Indent of the first order

• Factor

Regulates sum (volume) distribution in scaled orders. For instance, Factor = 2, then each subsequent order is 2 times larger than the previous one. And if the Factor = 0.5, then each subsequent order is 2 times less than the previous one.
Default Factor = 1, which means even distribution of the quantity between orders.

• Density / Step, %

Chosen “density” equal to 1 orders will be spread in the grid evenly, if more than one, than orders will grid closer to the last price, if less than 1 then closer to the first price.
Step in % * First order price / 100
Chosen “Step” than orders grid will be created from first order price with price equal to: Step in % * First order price / 100.

• Order count

Number of orders in the grid

• First order in the grid

  1. 1.
    First price indent, % Sets the distance in % from last price to the first order
  2. 2.
    First limit price Sets the limit price from last price to the first order

• Last order in the grid

  1. 1.
    Last price indent, % Sets the distance in % from last price to the last order
  2. 2.
    Last limit price Sets the limit price from last price to the last order
The levels of intermediate orders are calculated automatically.

• Order specification

  • Real The real order will be placed in the order book.
  • Virtual A virtual order will place a real order in the order book when the trigger. |The behavior of a virtual order is the same as that of a Stop order, but does not freeze the wallet balance.
If a Virtual order is selected, additional options become available:

• Virtual trigger

Trigger, upon activation of which a real order is created:
  • Last price The last price of a currency pair is checked. Price changes are checked every 2 seconds.
  • Order book The change of the sell last price in the order book for a buy order and the buy last price in the order book for a sell order are checked. This trigger protects well from false price breakouts (squeezes).
  • 1м candle, 3м candle... Select the timeframe of the candle, the close price of which will be compared with the trigger price.

• Number of real orders

If a virtual order is selected, then an option is available that allows you to specify how many real orders will be placed at the beginning of the grid. When an order is executed, the next virtual one is replaced by a real one.

Order types

  • Limit
  • Floating
  • Market

Price

Additional field for Limit type.
The exact price for placing a limit order

Price offset, %

Additional field for Limit type.
Offset in % from the last price.
  • Buy If the offset is positive, then the order price will be shifted down ↓ from the current price. If the offset is negative, then the order price will be shifted up ↑ from the current price.
  • Sell If the offset is positive, then the order price will be shifted up ↑ from the current price. If the offset is negative, then the order price will be shifted down ↓ from the current price.

Auto cancellation

Auto-cancellation of an order after a specified time.
If auto-cancel is set in the order grid, then auto-cancel is disabled when any order in the grid is executed.
Copy link
On this page
Enabled
Averaging with opened CA
Order amount
Maximum position size
• Maximum value
Single order / Grid
• Number of real orders
• Levels auto update
• Factor
• Density / Step, %
• Order count
• First order in the grid
• Last order in the grid
• Order specification
• Virtual trigger
• Number of real orders
Order types
Price
Price offset, %
Auto cancellation