StopLoss as a Limit order

 

Hello

How would you use a limit order as your stoploss.

StopLoss = OrderSend(Symbol(), OP_BUYLIMIT, Lots, Ask, Slippage, StopLossLevel, TakeProfitLevel, "Buy(#" + MagicNumber + ")", MagicNumber, 0, DodgerBlue < 0);

Or how would you code it.

Any help would be great

 

Hi Kiwi

I think you should use a BUYSTOP or SELLSTOP because these are set ahead of the price. So if you want to sell when a buy stoploss is hit you should have placed a SELLSTOP order.

Reason: