Quote:
|
Originally Posted by creative
Hi all! I am looking for a signal (arrow with sound) when a linear weighted moving average crosses another linear weighted moving average. I am only finding ema cross signal  Can someone help please? I appreciate your efforts 
|
There is thread about MA
here. And some indicators are
here as well.
Code:
extern int ShortPeriod = 5;
extern int ShortPeriodMode = 1; //0=sma, 1=ema, 2=smma, 3=lwma
extern int BigPeriod = 50;
extern int BigPeriodMode = 1; //0=sma, 1=ema, 2=smma, 3=lwma
extern int ExitPeriod = 20;
extern int ExitPeriodMode = 1; //0=sma, 1=ema, 2=smma, 3=lwma