- Check your return codes and find out why. What are Function return values ? How do I use them ? - MQL4 forum and Common Errors in MQL4 Programs and How to Avoid Them - MQL4 Articles
- And had you you would know that NULL is not a valid price (SL/TP) nor a magic number, and that LimeGreen is not a valid datetime (expiration.) OrderSend - Trade Functions - MQL4 Reference
OrderSend(Symbol_1,OP_BUY,2, MarketInfo(Symbol_1,MODE_ASK), 2, NULL, NULL, "RapidFire", NULL, LimeGreen);
- Do not trade multiple currencies in one EA
- You can't use any predefined variables, can't use the tester, must poll (not OnTick,) and usually other problems.
- Code it to trade the chart pair only. Look at the others if you must.
- Then put it on other charts to trade the other pairs. Done.
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 the following EA that I would like to open a long position when the indicator plots a blue x and short when it plots an amber x. Can someone point out the error in the code please.