You are con fusing index and buffer numberhobbytrader wrote: Wed Jun 14, 2017 6:56 pm Hi Mladen,
thank you for your advise, I have implemented your Indicator without coding the input parameters in my EA.
Unfortunately I don't get trade signals. This is what I did, using Buffer No. 9 to get (-1 / 0 / 1) signals.
Could you probably have a look?
Thank you in advance!Code: Select all
double SuperSmoothAverage(int index) { double SSA=iCustom(Symbol(),0,"Super smoothed average 1.5",index,9); return(SSA); } int SSA = SuperSmoothAverage(9); if(SSA== 1 && Timee!=Time[0]) {BUY} if(SSA == -1 && Timee!=Time[0]) {SELL} if(SSA == 0 && Timee!=Time[0]) {Close}
Do a simple
Code: Select all
int SSA =iCustom(Symbol(),0,"Super smoothed average 1.5",9,1);
If you use buffer 9 all is OK (provided that index and buffer number are not inverted)