I am looking on mobile.. Are you get any compling errors or warns!
Hi Ahlmet, no at the moment with this code i am not getting any error's. but before yes, i was getting error 130 when it would open only buy positions. now it get no erros but it open buy positions on the SELL ARROW.
Hi Keith, I tried to but every time i log in it automatically direct's me to mql5.
Hi Keith, I tried to but every time i log in it automatically direct's me to mql5.
The MQL4 and Metatrader 4 section is in the MQL5 website.
Hi all,
I'm creating an EA which call's one of my custom indicators and i want to open positions when the indicator gives me arrow signals.
The problem is my EA is opening buy positions on both arrow's.
I'm going to leave my code here with the hope that someone more experience could help me!
Many Thanks
Joao Santo
Should be:
Thanks Andrey, the code works fine now! :)
This is why I say: You should be able to read your code out loud and have it make sense. You would never write if( (2+2 == 4) == true) would you? if(2+2 == 4) is sufficient. So don't write if(bool == true), just use if(bool) or if(!bool). Code becomes self documenting when you use meaningful variable names, like bool isLongEnabled where as Long_Entry sounds like a trigger price or a ticket number and "if long entry" is an incomplete sentence.
Code working, many thanks! :)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
I'm creating an EA which call's one of my custom indicators and i want to open positions when the indicator gives me arrow signals.
The problem is my EA is opening buy positions on both arrow's.
I'm going to leave my code here with the hope that someone more experience could help me!
Many Thanks
Joao Santo