Hi, I made my first EA but I don't understand why it doesn't work. The Strategy Tester give the answer OrderSend error 130 and I don't know what do to correct the code. Please, can you help me?
Files:
esempio3.mq4
1 kb
- error 130
- [WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you.
- Need help with EA OrderSend Error 130
void start() { double Average=Average(); if(Ask<Average) { OrderSend(Symbol(),OP_BUY,1,Ask,30,Ask+400*Point,Ask+400*Point); } return; } double Average() { double a = (Close[0]+Close[1]+Close[2]+Close[3]+Close[4])/5; return (a); }Your SL and TP are both the same. For a buy order the SL would need to be Ask-400*Point
GumRai:
Your SL and TP are both the same. For a buy order the SL would need to be Ask-400*Point
Your SL and TP are both the same. For a buy order the SL would need to be Ask-400*Point
Lorenzo171298:Thank you very much GumRai

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