Indicators: SHI_SilverTrendSig

 

SHI_SilverTrendSig:

The indicator generates buy and sell signals.

Author: John Smith

 

Hi John,

Thanks for the indicator. Does this indicator repainting?

Also can you add the sound alert on it?

Thank you.

Lin

 
Tested on 1m chart. It does repaint.
 

Good indicator. BUT

You have a bug in your code. When user run the indicator just in initializing paint the signals. after that nothing happens. it's for bar counting.


Change this line:

if(CB<0) return(-1); else if(NB>Bars-CB) NB=Bars-CB;

line to this:

if ( CB > 0 )  NB=Bars-CB;

if ( CB < 0 )  return(0);

if ( CB ==0 )  NB=Bars;

Reason: