Open position

Open

A LONG position is opened when a buy↑ signal is received, for example:
1
{
2
"name": "Hook 196",
3
"secret": "2ehiexig0r5",
4
"side": "buy",
5
"symbol": "{{ticker}}"
6
}
Copied!
A SHORT position is opened when a sell signal is received, for example:
1
{
2
"name": "Hook 196",
3
"secret": "2ehiexig0r5",
4
"side": "sell",
5
"symbol": "{{ticker}}"
6
}
Copied!

Enabled

If enabled, when a signal arrives, an order will be created that opens a 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
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.

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.
1
Step in % * First order price / 100
Copied!
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

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.

Isolated

If disabled, the entire wallet collateral is used. If enabled, the collateral allocated for this position is used.
Used only on the Futures market.

Leverage

The size of the leverage affects the formation of the margin of the position.
Used only on the Futures market.

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.

Limits

Position side

  • Both When a buy signal arrives, a LONG will open, and when a sell signal arrives, a SHORT will open. Used for reversal.
  • Strategy The position will open according to the direction of your strategy
  • Long only Only LONG positions will be opened. Signals opening SHORT positions will be ignored
  • Short only Only SHORT positions will be opened. Signals opening LONG positions will be ignored

Timeout

Pause in minutes between creating positions.
The system will ignore the signal opening a position if the time after closing the last position has passed less than the specified timeout.

Maximum number of open positions

The position will not be opened if the total number of open positions exceeds the value of this option. Leave empty to disable the limit.

Maximum open positions Sum, USD

The position will not be opened if the total amount in USD of open positions exceeds the value of this option. Leave empty to disable the limit.

Maximum number of open positions per hook

The position will not be opened if the total number of positions opened by hook exceeds the value of this option. Leave empty to disable the limit.

Maximum open positions Sum per hook, USD

The position will not be opened if the total amount in USD of positions opened by hook exceeds the value of this option. Leave empty to disable the limit.

Blacklist of currency pairs

Currency pairs list, positions in which won’t be opened. Type the name of the pairs separated by commas or paste a list and click the green cross to the right of the field.

Whitelist of currency pairs

Only this currency pairs list positions will be opened. Type the name of the pairs separated by commas or paste a list and click the green cross to the right of the field.
Received signals will be ignored if the currency pair is on both the black list and the allowed one.
Last modified 2mo ago