Did You call OrderSelect function previously?
No I didn't. Fixed it and everything works just fine :)
Thanks stringo
Thanks stringo
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
I get 'Unknown ticket for OrderModify' when trying to modify an order with the following code:
"
if (reversal_long(valid_bars_limit)>reversal_point_lo ng)
{
reversal_point_long=reversal_long(valid_bars_limit );
Comment(reversal_point_long);
OrderModify(OrderTicket(),OrderOpenPrice(),reversa l_point_long,OrderTakeProfit(), 0,Green);
}
"
I've used the Comment to check if the calculations are correct and it changes according my calculations.
Still the open order does not change the stoploss and only generates the error.
Any clues as to ehat I'm doing wrong?
Thanks,
Rayner