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
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
Interesting concept, thanks for sharing.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Higher TimeFrame Trend Indicator:
Author: Desmond ORegan