There are at least a thousand topics about error 130 on this forum, did you try to find an answer ?
Check your stop is set according to the rules.

Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial
- book.mql4.com
Requirements and Limitations in Making Trades - Appendixes - MQL4 Tutorial

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
With the following code I cant see why I'm getting order send error 130? When I test on my broker vipromarkets it is bug free but when I take it to auto validation it returns ordersend error 130.
Why is it the first code here works okay with no bugs :
But when I change it to the following I get the bug :
I'm sure the problem lies somewhere as outlined?