William Roeder #: TakeProfit and StopLoss are prices, not amounts. SL must be below the Bid; not 50*1.3
It is converted to price inside that function.
StopLoss is an input in pips. I multiply that with 1.3 and that amount will go in that function, converted to correct normalized price, and used as stoploss price in the OrderModify() function.
And then I use that StopLoss in pips to create a filter for closing the trade. As Fernando said, I use stoploss from broker side as a second stoploss, and I use my first stoploss to trigger other actions when that price is hit,
TakeProfit and StopLoss are prices, not amounts. SL must be below the Bid; not 50*1.3
It is converted to price inside that function.
StopLoss is an input in pips. I multiply that with 1.3 and that amount will go in that function, converted to correct normalized price, and used as stoploss price in the OrderModify() function.
And then I use that StopLoss in pips to create a filter for closing the trade. As Fernando said, I use stoploss from broker side as a second stoploss, and I use my first stoploss to trigger other actions when that price is hit,