Attachments forums

List of attachments posted on this forum.


All files on forums: 162992

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

ionone, Fri Jun 13, 2025 3:20 am

mrtools wrote: Wed Jun 11, 2025 1:33 am Maybe for trend:

Code: Select all

iCustom(_Symbol, _Period, "Alpha trend bands (mtf +arrows + candles + alerts)",inp_length,inp_atr_multiplier,inpPrice,BandPeriod,BandATRMultiplier,15,BarToUse);

for bands:

Code: Select all

 double lowerBand = iCustom(_Symbol, _Period , "Alpha trend bands (mtf +arrows + candles + alerts)",inp_length,inp_atr_multiplier,inpPrice,BandPeriod,BandATRMultiplier,14,BarToUse);
 double upperBand = iCustom(_Symbol, _Period , "Alpha trend bands (mtf +arrows + candles + alerts)",inp_length,inp_atr_multiplier,inpPrice,BandPeriod,BandATRMultiplier,13,BarToUse);
this is not right.

correct syntax is :

Code: Select all

iCustom(_Symbol, _Period, "Alpha trend bands (mtf +arrows + candles + alerts",0,0,"alp b1",inp_length, inp_atr_multiplier, inpPrice,   15,BarToUse);

also I think there will be an error reaching buffer 15 because it's not been defined correctly in the indi (only 14 buffers available)

EDIT : oh well it works now....
All files in topic