PureBytes Links
Trading Reference Links
|
Say you want to make use of indicators from multiple timeframes. Can someone
tell me for certain if code built like this looks into the future at all:
TimeFrameSet(inWeekly);
MyIndicator = SomeFunction(Close);
TimeFrameRestore();
MyIndicator = TimeFrameExpand(MyIndicator, inWeekly, expandLast);
buy = buy and MyIndicator > threshold;
sell = sell and MyIndicator < threshold;
My understanding from the docs is that TimeFrameExpand can look into the
future, but only if you use expandFirst. By using expandLast, the weekly
price isn't available until Friday, at the end of the week, and looking into
the future is avoided.
Do I have that right? The code above doesn't look into the future, even by
part of a day, ever?
Thanks,
Dave
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|