My choice is that it is working now why change it I see nothing the matter with 
saying ref(c,-5) because that is what we  want to do and most people would stat 
it that way like  What was the closing price of XXX    5 days ago.

--- On Thu, 2/19/09, CSTrader <[email protected]> wrote:
From: CSTrader <[email protected]>
Subject: Re: [amibroker] A shorter syntax to reference past elements of array
To: [email protected]
Date: Thursday, February 19, 2009, 11:23 AM

Most simple seems:

EarlyClose = Close(5)

I'd use positive integers to refer to the past, as that is the normal way
to 
reference data.

----- Original Message ----- 
From: "Tomasz Janeczko" <[email protected]>
To: <[email protected]>
Sent: Thursday, February 19, 2009 11:08 AM
Subject: [amibroker] A shorter syntax to reference past elements of array


> Hello,
>
> As a convenience feature I was contemplating for some time to allow
> shorter syntax to very common operation of referring to past elements of 
> the array.
> As you now current syntax to refer to past is:
>
> Ref( array, -bars )
>
> So close five bars back is Ref( C, -5 )
>
> I don't have any technical problem with adding new operator that will
make 
> it shorter,
> but I am wondering about the most preferrable "form",
> that is easy to use and does not create confusion.
>
> So I would like to ask you which
> "short form" would you prefer.
> - c...@5
> - C#5
> - C(5)
> - I don't like the idea at all
>
> Please use this poll to vote:
> http://finance.groups.yahoo.com/group/amibroker/surveys?id=2828485
>
> Thank you.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
>
>
> ------------------------------------
>
> **** 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
>
>
>



------------------------------------

**** 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






      

Reply via email to