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,
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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,