Problem solved. It was an error on code for order modification, not order sending.

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
This doesn't make sense to me...so I'm here to ask for some help.
In my Expert Advisor I am placing a pending BUY STOP above current Price, yet it is generating the 130 INVALID STOPS error.
This is an ECN broker that doesn't allow stoploss or takeprofit on pending orders... so I have set those values to 0.
The MODE_STOPLEVEL returns 0. Therefore I should be able to place a BUY STOP anywhere above the current price.
I don't understand why it is giving me the 130 error.
Here is a snip of my code:
Any help would be appreciated. Thank you!