Moving Average - page 14

 
newdigital:
I am not sure exactly but I think thast negative value of EndEMAShift will not work. Because EndEMAShift is just a shift. Number of bar.

Look at here:

fEndMA=iMA(NULL,0,EMAPeriod,0,MODE_EMA,PRICE_MEDIAN,i+EndEMAShift);

fStartMA=iMA(NULL,0,EMAPeriod,0,MODE_EMA,PRICE_MEDIAN,i+StartEMAShift);

fAngle = mFactor * (fEndMA - fStartMA);

i+StartEMAShift and i+EndEMAShift are number of bars on the chart. For example: bar #0, bar #1 and so on.

And all bars on the chart is counted starting from zero (0):

- bar #0 is current bar which you see on the chart. It is open bar in most of the cases.

- bar #1 is previous bar.

Bar # -1 is future bar which does not exist yet. So the bar number can not have negative value.

Of course sometimes some coders are coding for future bars especially but it is very special cases. For example well-known case with Future-is-not-set indicator based on DayImpulse indicator is such a case.

many thanks for helpful information

 

Squize_MA_mtf insicator is here.

 

MA_in_Color_wAppliedPrice indicator by MrPip is here https://www.mql5.com/en/forum/177803

 

FX5 Sniper's MA

Sometime you post a chart and we don't know which MA is which. So I modified the indicator to show what color belongs to which MA. Attached is a template so you can use it to modify. It's easier to see how it was set up. You can display the info in any 4 corner: upper left, upper right, lower left, lower right. In this set up, I display the info in the upper right corner.

 

Excellent job, Banzai..!!!!!

 

Squize_MA_M_mtf indicator -added envelopes on squize areas https://www.mql5.com/en/forum/173574

 
fxbs:
SnakeBorders SnakeForce

do you hava a SnakeBorders with alert???

 

Hourly MA shown in 5 min charts

I am sure someone may have already done this.

An indicator to show the hourly moving averages like 20 period hourly MA within a 5 min chart. Any indicator like this on this forum ?? Please share, thx.

 

Why do you need an indicator? - just multiply the period you want by 12...

 

you can find mtf indicator here

https://www.mql5.com/en/forum/173574

Reason: