General information

Stops-on-Fill

Stop loss and take profit on the entry order, per exchange

It is always recommended to use testnet/sandbox first!

What stops-on-fill means

On some exchanges sl= / tp= on an opening order attach a stop loss and take profit that become active when the order fills. ProfitView supports this on:

ExchangeStops on the entry order
Bybit
OANDA
Phemex
SimpleFX
all other exchanges–
# one order: entry with stop loss and take profit (stops-on-fill exchanges only)
long=10% lev=5 market sl=-1% tp=2%
Watch out: on exchanges without stops-on-fill, sl= / tp= on an order line don't attach exits, they turn that order itself into a conditional order. On Binance Futures long=10% sl=-1% tp=2% becomes a single take profit order, not an entry with a stop and a target.

The way that works on every exchange: the entry first, then the exits as separate closing orders.

cancel
[side]=10% lev=5 market err=abort
delay=0.5s
close sl=[-]1% market id=[id]-SL expect
close tp=[+]1.9% p=[+]2% id=[id]-TP expect

Binance spot: OCO exit

Binance spot and margin have no stops-on-fill either, but sl= and tp= together place an OCO order: a take profit and a stop loss on the opposite side, the one that triggers cancels the other. Binance turns the side around itself, so the exit after a buy is written with the same side as the buy, and its quantity is of the coin you bought.

ex=binance sym=ETCBTC
buy=10% market
delay=0.5s
# sells 100% of your ETC: take profit 2% above, stop loss 2% below
buy=100% sl=-2% tp=2% market
Only sl= or only tp= places a single stop or take profit order of that coin, again on the opposite side.

Changing or removing them (Bybit)

An SL/TP set on the entry order is an attribute of the position, not an order. So:

  • a plain cancel (or cancel=sl) leaves it alone, it only cancels open orders and separate stop orders;
  • close sl=0 market replaces the position's stop loss, here with break-even (sl=0 = the entry price);
  • a closing sl= / tp= with id=, a limit price (the default type) or stop= places a separate conditional order instead.
On OANDA, Phemex and SimpleFX the details may differ. A table per exchange is in preparation, until then test on a demo account first.
Attention: Always double check that you are using the right syntax/alert!