Attachments forums

List of attachments posted on this forum.


All files on forums: 163115

Re: MT4 Indicator requests and ideas

mladen, Wed Jun 14, 2017 7:37 pm

hobbytrader 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?

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}
    
Thank you in advance!
You are con fusing index and buffer number
Do a simple

Code: Select all

int SSA =iCustom(Symbol(),0,"Super smoothed average 1.5",9,1);
for the first closed bar (or 0 instead of 1 for still opened bar)
If you use buffer 9 all is OK (provided that index and buffer number are not inverted)


All files in topic