Call GetLastError function and analyze it's result
Call GetLastError function and analyze it's result
GetLastError returns 3 which means 'invalid parameters'. I call
OrderModify(OrderTicket(), Ask+stop_level, Ask-stop_loss_level, Ask+TakeProfit*Point, OrderExpiration()));
This call is usually OK but sometimes returns Invalid Parameters error with log shown in my first post.
The GetLastError 3 does not give me any clue how to solve this problem and what it actually menas.
Is EURJPY chart open?
Is EURJPY chart open?
Yes
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 have an expert running on few instruments. All are OK except EURJPY, where I get Invalid parameters error.
2006.06.25 23:16:01 '13501': modify pending order #72474 buy stop 2.10 EURJPY at 146.5100 sl: 146.4500 tp: 155.8100 -> price: 146.4900 sl: 146.4300 tp: 155.7900
2006.06.25 23:16:01 '13501': modification of pending order #72474 buy stop 2.10 EURJPY at 146.5100 sl: 146.4500 tp: 155.8100 -> price: 146.4900 sl: 146.4300 tp: 155.7900 failed [Invalid parameters]
I don't understand what does it mean. Can anybody explain?