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

Re: [amibroker] AFL Guidance



PureBytes Links

Trading Reference Links

Hi Graham.

Thanks for your help on that code.  It's not however exactly what I need. 
Let me try to say it again.  I'm not sure it's possible, except perhaps by 
looping.

Imagine that we were going to use plotshapes() to put a mark at the highest 
peak between Event 1 and Event 2.  After we pass Event 1, there are going to 
be several high peaks before we get to Event 2.   However, we don't want to 
mark each high peak as it occurs.  Rather, the goal is to leave all of the 
peaks unmarked until we get to Event 2, and only then place a mark at the 
highest of the peaks.



chuck



----- Original Message ----- 
From: "Graham" <kavemanperth@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, December 03, 2005 11:18 PM
Subject: Re: [amibroker] AFL Guidance


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



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