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

[amibroker] Ask: AFL



PureBytes Links

Trading Reference Links



Dear ami-fans

trying to write a formula to define PEAK as:
the highest of each of the next 3 consecutive bars (counter trend bars) has to be equal or lower then the highest of the peak bar.
actually i am converting "price channel 3 days" @ chartnexus...

the formula i wrote:
PeakCond=  ( H>=Ref(H,1) AND H>=Ref(H,2) AND H>=Ref(H,3));
Peak = ValueWhen(PeakCond,H,1);

but it's not correct for the last bar (Last date), since it doesnt have the next bar [(Ref(H,1) and so on)]
any sample script that perform similar program?

Thanks in advance...

Cheers/Agung


Mencari semua teman di Yahoo! Messenger?
Undang teman dari Hotmail, Gmail ke Yahoo! Messenger dengan mudah sekarang!

__._,_.___


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

__,_._,___