PureBytes Links
Trading Reference Links
|
Dear Prashanth,
Thanks for your reply.
If that were the case, there was no need for programmer to include the following words for "Ref" in "Trading System Toolbox" of the "User's Guide".
REF - reference past/future values of the array
FUNCTION - References a previous or subsequent element in a ARRAY. A positive period references "n" periods in the future; a negative period references "n" periods ago.
EXAMPLE - The formula "ref( C, 12 )" returns the closing price 12 periods ahead (this means looking up the future)
If that were the case, he could have simply omitted these words.
I guess there still is some way in which one can get some data for periods ahead. Whether or not that data proves correct is not the issue. But is should be possible to return some positive values.
I request you please use your expertise and I hope you will have some solution to my problem.
Thanks.
gakkhar
On Sun, 27 May 2007 11:53:48 +0530, Prashanth <prash454.ta@xxxxxxxxx> wrote:
> Hello,
>
> If you are trying to access data for which there is no data, it will return
> only current data.
>
> Try running Ref(C,4) for data 10 days back or even 5 days back and it shall
> give the correct result.
>
> Cheers
>
> Prashanth
> ----- Original Message -----
> From: "Vinay Gakkhar." <vgakkhar@xxxxxxxxxxx>
> To: "amibroker" <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, May 27, 2007 11:39 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
<*> 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/
|