Indicators: Adaptive to TF SMA

 

Adaptive to TF SMA:

The MA will automatically recalculate the period if there are any changes in time frame.

Author: Gennadiy Stanilevych

 

is this normal???

possible loss of data due to type conversion iTC_iMa.mq5 176 14

possible loss of data due to type conversion iTC_iMa.mq5 186 14

 
Armen:

is this normal???

possible loss of data due to type conversion iTC_iMa.mq5 176 14

possible loss of data due to type conversion iTC_iMa.mq5 186 14

In this case there is no loss, if it is tense, you can do it like this:

PeriodI=(int)h/pers;

 
Olegts:

In this case there is no loss, if it's too hard, you can do it like this:

PeriodI=(int)h/pers;

thanks