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

Re: [amibroker] Does this use of TimeFrameExpand look into the future? [ REPOST]



PureBytes Links

Trading Reference Links




Hello,
 
Yes you are correct (as long as yours "somefunction" does 
not reference future bars).
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Dave Merrill 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, December 23, 2003 6:12 
  PM
  Subject: [amibroker] Does this use of 
  TimeFrameExpand look into the future? [ REPOST]
  
  [Not sure if this made it through or 
  not. Didn't see any replies, and I need to know! Thanks, 
  Dave]
   
  Say you want to make use of 
  indicators from multiple timeframes. Can someonetell 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 thefuture, but only if you use expandFirst. By using expandLast, 
  the weeklyprice isn't available until Friday, at the end of the week, and 
  looking intothe future is avoided.Do I have that right? The code 
  above doesn't look into the future, even bypart of a day, 
  ever?Thanks,DaveSend BUG REPORTS to 
  bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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 the Yahoo! Terms of Service.