PureBytes Links
Trading Reference Links
|
something like this might work for you adn will give a value only on
the bar exent2 occurs
condition = event2 * highestsince(event1,H);
to carry this value forward past the event2 bar
condition = valuewhen( event2, highestsince(event1,H) );
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm
On 12/4/05, cstrader <cstrader232@xxxxxxxxxxxx> wrote:
>
> Is this possible in AFL? I can't see how.
>
> I want to find the highest peak between Event1 and Event 2. Obviously this
> involves looking into the future, because it can't be determined until Event
> 2 occurs. Can I force this variable to remain at zero until Event 2 occurs,
> and only then calculate the highest peak?
>
> Thanks in advance.
>
> chuck
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|