Close position
Example of setting up a flip in the terminal. This is the standard setting for flipping the amount set in the opening (flipping the same amount). Example: If a Long position was opened for $100, the position will be closed and a Short position for $100 is opened
In a LONG position, closing occurs when a sell↓ signal arrives, for example:
{
"name": "Hook 196",
"secret": "2ehiexig0r5",
"side": "sell",
"symbol": "{{ticker}}"
}
In a SHORT position, closing occurs when a buy↑ signal arrives, for example:
{
"name": "Hook 196",
"secret": "2ehiexig0r5",
"side": "buy",
"symbol": "{{ticker}}"
}
The position will also close if the TradingView strategy sends "positionSide": "flat" instead of long or short

Enabled

If enabled, when a closing signal is received, an order will be created to close the position.
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.а.

Order type

  • Floating
  • Market
  • Limit

Reverse / Close

The option is available only for the Futures and Margin markets
If enabled, when a closing signal is received, the reversal position will be created for the Amount in the signal or for the Amount in the current position
When a position reversal is activated, the One way mode must be enabled.

• Amount in the signal

When this option is selected, it is possible to set the amount of the Reverse:
  1. 1.
    Open amount + Position amount For example, if there is $100 left in the position after partial closing, and the opening in the signal = $500, then when a closing signal arrives, an order for $600 will be created, which will close the current position and open the opposite one for $500.
  2. 2.
    Amount A flip order will be created for the specified number of tokens (contracts). For example, in a LONG position in the XRPUSDT pair, 100 is indicated, which means that when a SELL signal is received, an order with a quantity = 100 XRP will be created.
  3. 3.
    Sum (volume) A reversal order will be created for the specified sum (volume). For example, in a LONG position in the LTCBTC pair, 0.01 is indicated, which means that when a SELL signal is received, an order will be created in the amount of 0.01 BTC.
  4. 4.
    Sum (volume), USD A flip order will be created for the specified sum (volume) in dollars. For example, if 100 is specified in the LTCBTC pair, then an order with a volume equivalent to $100 will be created
  5. 5.
    Balance, % A closing 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 10% of the balance is indicated, then the order will be created for the amount (1000 + 2000 + 100) x 10 / 100 = 310 USDT
  6. 6.
    Balance% x 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
  7. 7.
    Position amount, % When a signal arrives, the position is closed by the percentage specified in the setting.
  8. 8.
    Position amount + Balance% When a signal arrives, the current position will be closed + a new one will be opened at % of the balance.
  9. 9.
    Position amount + (Balance% x Leverage) When a signal arrives, the current position will be closed + a new one will be opened by % of the balance multiplied by the leverage

• Amount in the current position

When a signal arrives, a reversal order will be created = 2x from the current position. That is, the current position will close and a new one will open for the same amount.

• Disable

Closing or reversing a position is disabled

Check profit

If enabled, then unprofitable positions will not be closed when a closing signal is received.

Close ALL positions

If this parameter is enabled and a closing signal is received, then all open positions on this market will be closed according to the Open / Limits / Position setting:
  • Both Will close ALL positions on this market
  • Long only Will close all LONG positions on this market
  • Short only Will close all SHORT positions on this market
If you send a signal containing "positionSide": "flat", then all positions on this pair on this market will be closed. For example
{
"name": "Hook 72767",
"secret": "dy2uuc5bih8",
"side": "buy",
"symbol": "XRPUSDT",
"positionSide": "flat"
}
Last modified 2mo ago
Copy link
On this page
Enabled
Order type
Reverse / Close
• Amount in the signal
• Amount in the current position
• Disable
Check profit
Close ALL positions