Indicators: Higher TimeFrame Trend Indicator

 

Higher TimeFrame Trend Indicator:

This indicator displays on the current (lower) timeframe the overall trend on a higher timeframe. It also displays & alerts RSI overbought oversold conditions.

Author: Desmond ORegan

 
my dear, i like your robot's idea but it is not working
 
ekposky:
my dear, i like your robot's idea but it is not working

Hi,

Maybe cos it aint a robot!! Assuming you knew that, I'll need more info - error messages in expert log and such. Works perfectly for me.

(Note: The wider the gap between the current chart and the higher timeframe chart the more bars have to be in the chart to get correct moving average values. EX. a 10MA on a 4hr chart is equivalent to a 160MA on a 15min chart i.e. 10*(240/15); a 10MA on a Daily chart is equivalent to a 14400MA on a 1min chart!! )
 

Hi,

I don't know if this thread is still active but just looked at the code for the trend indicator and you seem to be working out the timeframe for the current chart...

double MA_1 = iMA(Symbol(),0,(Upper_Timeframe_MA_1*MA_Factor),0,MODE_EMA,PRICE_CLOSE,i);

the 0 in the iMA function takes the current chart timeframe, unless I have got that all wrong... which is a real possibility lol

Regards

Jesse

Reason: