[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Check trend in other time frames... Incorrect value?



PureBytes Links

Trading Reference Links

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

 

 



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS