I make the
following codes to check the daily trend:
TimeFrameSet(inDaily);
trend_major=MACD(12,26)>Signal(12,26,9);
TimeFrameRestore();
So, if it is 1
then the daily trend is up and if the trend_major is 0, then the daily trend is down. Usually I will
refer the code in Hourly time frame. I think it works just fine with lower time
frames. But, if I move to Weekly time frame, the value will change with the
weekly bars, not daily bars.
Any idea? Or I
cannot refer it from a higher time frame or some timeframe compress issue?
Thank you in
advance.
Clement the new
user