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

[amibroker] looking for more efficient code



PureBytes Links

Trading Reference Links



Is the a more efficient way to say something like the following:

 

Ref (H,-1) > Ref(H,-2) AND Ref (H,-2) > Ref (H,-3) AND Ref (H,-3) > Ref(H,-4) AND Ref (H,-4) > Ref (H,-5) etc.

 

What I am looking for is someway to say a condition (in this case H > previous H) is "repeated" x bars backward, so that x can be a parameter without having to type the whole thing out. I know there is an eloquent solution, but I am drawing a blank.

 

Thanks for your help,

James




__._,_.___


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

__,_._,___