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

Re: [amibroker] TimeFrameGetPrice



PureBytes Links

Trading Reference Links

If the future exits from the particular bar in question then you get a value
If the bar is on or after the 4th to last day of the data, then a 4
day future does not exist
If the bar is before the 4th to last day of the data, then a 4 day
future does exist
However I cannot see any real value to using future values unless your
signal references that condition as far back in the past as you look
into the future for that condition. This forward looking would I think
generally be used for finding swing points where the pivot does not
exist until after the price has retraced.

eg
Condition = ref(occurence,4);
Signal = ref(condition,-4);

-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com


On 28/05/07, Vinay Gakkhar. <vgakkhar@xxxxxxxxxxx> wrote:
> Dear Tomasz,
>
> In TimeFrameGetPrice, shift allows to reference past (negative values) and future (positive values) data in higher time frame.
>
> What exactly is meant by 'future' here?
>
> gakkhar
>
> ------- Forwarded message -------
> From: "Tomasz Janeczko" <groups@xxxxxxxxxxxxx>
> To: amibroker@xxxxxxxxxxxxxxx
> Cc:
> Subject: CORRECT RESULTS, was Re: [amibroker] WRONG RESULTS
> Date: Mon, 28 May 2007 02:43:27 +0530
>
> Are you serious? Do you expect Ref( C, 4 ) to give you result for 4 days ahead from TODAY?
> AB is not crystal ball.
>
> You have to set selected date to FOUR DAYS BACK and then it will be able to refer to "future" bars into the "future" (relative to
> selected PAST bar).
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "Vinay Gakkhar." <vgakkhar@xxxxxxxxxxx>
> To: "amibroker" <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, May 27, 2007 8:09 AM
> Subject: [amibroker] WRONG RESULTS
>
>
> > The formula "ref( CLOSE, -4 )" is supposed to return the closing price 4 periods ago. and the formula "ref( C, 4 )" is supposed to
> > return the closing price 4 periods ahead.
> >
> > But on my computer it returns the same data as "(Close, 0)" when I use "C, 4"1 or 2 or 3 or 5 or any other positive figure. On the
> > other hand, it returns the correct data for minus figures.
> >
> > Will anyone please check whether it is really so, or whether I am committing some mistake somewhere and will please guide me?
> >
> > gakkhar
> >
> >
> >
> >
> >
> > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>
>
>
> 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
>
> Yahoo! Groups Links
>
>
>
>


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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
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/