Cross!

 

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

 

I can help with this cross. I'm not sure what arrow is.

 
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

If you have EMA cross indicator, its easy to change it to do what u want.

look for line like this one

iMA(NULL,0, 5, 0, MODE_EMA, PRICE_CLOSE, i);

the parameters can be something else but u care about MODE_EMA, PRICE_CLOSE change the MODE_EMA to MODE_LWMA and u set

 
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.

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
Files:
 

Thank you Niva, Elihayun and Newdigital for your good help and fast replys!

Take care!

 

Try my one.

Files:
 
niva:
Try my one.

Niva thanks for your efforts, newdigital gave me the indicator i needed.

All the best!

 
creative:
Niva thanks for your efforts, newdigital gave me the indicator i needed. All the best!

Which indicator?

I posted two indicators already: one with dots and the other one with arrows. They are the same but with dots and arrows only.

Explanation of the settings:

ShortPeriodMode = 1; //0=sma, 1=ema, 2=smma, 3=lwma

BigPeriodMode = 1; //0=sma, 1=ema, 2=smma, 3=lwma

ExitPeriodMode = 1; //0=sma, 1=ema, 2=smma, 3=lwma

ShortPeriodMode is the mode for one crossing MA (3 is linear weighted moving average).

BigPeriodMode is the mode for the other crossing MA (3 is lwma - your case)

ExitPeriodMode - mode for MA for exit (if you are using lwma or ema or whatever ma for exit).

ShortPeriod = 5 - period of the first crossing indicator.

BigPeriod = 50 - period for the second one.

ExitPeriod = 20 - period for exit (first indicator is crossing Exit indicator).

You may change everything in the settings of course.

Files:
 
 

The other EMA with alert is here https://www.mql5.com/en/forum

Reason: