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

Re: [amibroker] A shorter syntax to reference past elements of array



PureBytes Links

Trading Reference Links

Herman,

You can also take the perspective that the whole array is being shifted forward (right shift) 5 bars.  That brings the past bars forward.  While I scratched my head a bit before voting about no C(-5) option to match the Ref() convention, if there had not been a Ref() convention to start with, I would have gone for the positive number bringing the array forward in time.  In other words, Ref() is "referring" to bars in the past with negative numbers, while the new shorthand is shifting bar arrays forward in time.  So looking at it from that perspective, I am comfortable with it as a NEW operator type explained as shifting bars in the array.

BR,
Dennis


On Feb 19, 2009, at 11:20 AM, Herman wrote:

Sorry , but imo the new forms are critic and counter intuitive.

C(5) looks back 5 bars.... what would looking forward look like? C(-5)? 

imo, very confusing. I can't help but wonder what made this idea surface :-)) 

herman


Thursday, February 19, 2009, 11:08:25 AM, you wrote:

> 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@x 
> - C#5 
> - C(5) 
> - I don't like the idea at all

> Please use this poll to vote:

> 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
> (submissions sent via other channels won't be considered)

> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:

> Yahoo! Groups Links

> <*> To visit your group on the web, go to:

> <*> Your email settings:
>     Individual Email | Traditional

> <*> To change settings online go to:
>     (Yahoo! ID required)

> <*> To change settings via email:

> <*> To unsubscribe from this group, send an email to:

> <*> Your use of Yahoo! Groups is subject to:







__._,_.___


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





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___