Re: [amibroker] How to get a number from an array

 

Thank You Alan: it works! But now I've a second question about the same argument (I'm a very beginner). My setup for entry long trade is this:

UpTrend = (Ref(H,-1) < H) AND (Ref(L,-1) < L);

this setup can happens several times during a trend but only the first time get me into the trade as long as the exit condition becomes true. How can I detect the bar number of entry and store it into a variable in order to select the subsequent highest value as you've coded in the previous post?
Thanks again.

Regards.

__._,_.___

Posted by: gamacc@aruba.it
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (15)
**** 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/


.

__,_._,___


EmoticonEmoticon