Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
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
Hi,
i'm new to EA, i tried to code an EA that take position when stochastics are above or below 80-20 zones and when H4 candles cross moving average...
but there is a bug on the code, it doesn't take any positions. I think, it's the part with all the loops and the orderselect
also i would try to add some lines to close and modify orders when it gets to a certain ammount of pips based on the orderopenprice; i coded this that i initially added to the code but it didn't work either:
(initially i didn't put TP on the ordersend, so the bug don't come from that)thanks for your help by advance