I choose any timeframe, for example 1H, and the indicator is drawn only on this timeframe, when switching the chart to another indicator does not display anything.
I also tried to take the indicator Four_MA_Strength, rename it, specify in the code MA_Handle[0]=iMA(NULL,0,Ma1_Period,0,Ma1_Method,Ma1_Price); instead of 0 the required timeframe and add it to the chart as a new indicator together with the original one, but it does not draw either. I don't understand why...
In general, I would like to make in one indicator 7 lines from M1 to D or even W to always see the full picture without constant switching to different timeframes. If it is not too difficult for you, make such an indicator. The stepwise trend strength does not need to be implemented in the code as it is initially in your code. One condition: either each higher MA is lower than the previous one, or vice versa, each higher MA is higher than the previous one.
if ( Ma1_0 > Ma2_0 && Ma2_0 > Ma3_0 && Ma3_0 > Ma4_0 ) ustrength;
if ( Ma1_0 < Ma2_0 && Ma2_0 < Ma3_0 && Ma3_0 < Ma4_0 ) dstrength;
The steps will be implemented due to different timeframes.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Four_MA_Strength_HTF:
The Four_MA_Strength indicator with the timeframe selection option available in input parameters.
Author: Nikolay Kositsin