PureBytes Links
Trading Reference Links
|
ang_60:
Maybe if you try
TrRng= ref( ATR(1),-1 );
It should then look for the True Range for the previous day.
--- In amibroker@xxxxxxxxxxxxxxx, "ang_60" <ima_cons@xxx> wrote:
>
> Hi everyone,
>
> a little help if possible.
>
> I have a problem with the "multitimeframe" functions which is better explained with a little example.
> Suppose I work with 5 minutes bars.
> For any given bar, I need to know the TrueRange of the day before.
>
>
> The following code does the job:
>
> TimeFrameSet (inDaily);
> TrRng= ATR(1);
> TimeFrameRestore();
>
> TrueRange_Daily = TimeFrameExpand (TrRng, inDaily);
> Filter =1;
> AddColumn(TrueRange_Daily, "TR Daily", 1.0);
>
>
> ?.. unless for the last bar of the day, for which it gives the True range of the current day (in the JPEG,
>
> http://rapidshare.com/files/276871452/MultiTime_Frame_AMB.JPG.html
>
> 17:40 is the last bar of the day?.. however the True Range of the preceding day at the 17:40 bar should still be 425).
>
> Has anyone any ideas useful to resolve this?
>
>
> PS By the way, how can I add attachments to my messages?
>
------------------------------------
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|