You call CloseAtMiddleBand();
But CloseAtMiddleBand(); does not call the indicator.
How is it suppose to know when to close ?
Hi Marco,
Thanks for your help on this.
Aren't I calling the indicator through "MAGet2(0)"? Can you please show me how I should call the indicator?
Thanks, Tim
void CloseAtMiddleBand() { if (Bid>MAGet2(0))closebuy(); }
Hi MQL5 experts,
Can anyone else shed light as to why my EA is not closing at the middle BB?
Thanks, Tim
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 Guys,
I'm in the process of learning how to convert my MT4 EAs into MT5 EAs.
I'm working on a simple BB EA that buys on the lower band and closes at the middle band / aka: BASE_LINE.
The EA successfully opens positions but does not close them out at the middle BB.
Can you guys please point me in the right direction - I'm at a loss!!
Thanks, Tim