Indicators: 3 Timeframe Indicator

 

3 Timeframe Indicator:

Draws either MACD, Stochastic, RSI or CCI of 3 timeframes in a separate window.

3 Timeframe Indicator

Author: pipPod

 
Can you explain it please? Is it average of 3 timeframes in one view?
 
MaxEmperor:
Can you explain it please? Is it average of 3 timeframes in one view?
Each individual timeframe is drawn as it would look on the original timeframe chart without bar shift('steps'). The only modifications are RSI and Stochastic have zero instead of 50% as the centre for histogram purposes and MACD and CCI are also on a percentage scale, if you want to add levels, for instance.
 
Hi pipPod thanks for the great indicator. i was wondering though, i use the Macd on 5 15 and 30 Time frames, but i noticed that i sometime miss the bars on the 5min time frame due to refreshing, how ca ni get this to auto refresh so i get the next bar as it comes up? Regards
 
Sibonelo Zikalala:
Hi pipPod thanks for the great indicator. i was wondering though, i use the Macd on 5 15 and 30 Time frames, but i noticed that i sometime miss the bars on the 5min time frame due to refreshing, how ca ni get this to auto refresh so i get the next bar as it comes up? Regards

Hi Sibonelo,

Maybe change the NewBar() function like this?

//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
const bool NewBar(const datetime& time)
  {
   static datetime time_prev;
   datetime time_now;
   if(TimeFrame_1<_Period) time_now = iTime(NULL,TimeFrame_1,0); 
   else                    time_now = time;
   if(time_prev!=time_now)
     {
      time_prev=time_now;
      return(true);
     }
   return(false);
  }
Reason: