Attachments forums

List of attachments posted on this forum.


All files on forums: 162992

Re: Simple Expert Advisors (EA's) for MT4

Ganesh, Tue Jun 10, 2025 10:32 pm

mrtools wrote: Tue Jun 10, 2025 9:29 pm Hello, just to add

Code: Select all

 double lowerBand = iCustom(Symbol(), 0, "Alpha trend bands (mtf +arrows + candles + alerts)", BandPeriod, BandATRMultiplier, 0, 0);
 double upperBand = iCustom(Symbol(), 0, "Alpha trend bands (mtf +arrows + candles + alerts)", BandPeriod, BandATRMultiplier, 1, 0);
if calling the bands should be something like

Code: Select all

double lowerBand = iCustom(Symbol(),0,"Alpha trend bands (mtf + arrows + candles + alerts)", BandPeriod, BandATRMultiplier,14,0);   
double upperBand = iCustom(Symbol(),0,"Alpha trend bands (mtf + arrows + candles + alerts)", BandPeriod, BandATRMultiplier,13,0);
Now the EA is working for both sell and buy trades. But the EA has the following issues
1) The EA Utilizes the default settings of the indicator and not the EA settings.
2) Close all trades on opposite signal is inactive.

Please do rectify the same.
All files in topic