
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
so then, how does one modify a stoploss on such an order?
You select an order based usually on magic number, symbol and type and then you do the necessary modifications
Does the Magic Number of a Pending Order stay the same when it is opened?
Can you maybe give me an example of OrderModify using the Magic Number?
Thanx
Can you maybe give me an example of OrderModify using the Magic Number? Thanx
Try something like this :
{
if (!OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES)) continue;
if (OrderSymbol() != Symbol()) continue;
if (OrderMagicNumber()!= MagicNumber) continue;
if (OrderType() == OP_BUY)
{
// code for buy order modification
}
if (OrderType() == OP_SELL)
{
// code for sell order modification
}
}