Calling all gurus and mt4 experts

 

This must be simple for programmers, but is hard for me...

I am looking for a Ema cross indicator, but one ema for example ema6 must have shift -1. All i find is the regular cross of ema's but without shift option.

Can someone help me please?

 
migman:
This must be simple for programmers, but is hard for me...

I am looking for a Ema cross indicator, but one ema for example ema6 must have shift -1. All i find is the regular cross of ema's but without shift option.

Can someone help me please?

In the below example line of code, the 0 value represents the ma_shift.

double Ema1 = iMA(NULL,0,Ema_1, 0,MODE_EMA, PRICE_CLOSE, EmaShift);

If you doubleclick your .mq4 file, you can change this value in your source to your liking and finaly hit the compile button.

 
HerbertH:
In the below example line of code, the 0 value represents the ma_shift.

double Ema1 = iMA(NULL,0,Ema_1, 0,MODE_EMA, PRICE_CLOSE, EmaShift);

If you doubleclick your .mq4 file, you can change this value in your source to your liking and finaly hit the compile button.

Dam i am such a nerd with mt4... can you change this for me please? Only when you have some free time. Thanks a lot Herbert. Here attached is the indicator.

Really Appreciate that!

Files:
 

Indicator EMA shift made adjustable

migman:
Dam i am such a nerd with mt4... can you change this for me please? Only when you have some free time. Thanks a lot Herbert. Here attached is the indicator. Really Appreciate that!

No problem MigMan, here you go.

The shift can now be changed within the indicators settings (default=0)

Regards

Files:
 
HerbertH:
No problem MigMan, here you go.

The shift can now be changed within the indicators settings (default=0)

Regards

Herbert you are very kind. That you so much! All the best and take care

Reason: