A couple of issues here.

Firstly, is Triggerpoint supposed to be the value at the Longsetup bar
or the current bar? If the latter, then you'll never get a trigger
because H can never be greater than HHV(H,3)+0.01. If the former, then
you need to latch in the value of HHV(H,3)+0.01 at the Longsetup bar
until you get the trigger.

Secondly, is there any condition to cancel your Longsetup before
getting the trigger condition? For example, if the stock completely
tanks immediately after the Longsetup condition, do you still want to
buy when the trigger condition is subsequently met (ignoring the first
issue above), even if it's at a much lower price and/or much later?

GP


--- In [email protected], "Ara Kaloustian" <[EMAIL PROTECTED]> wrote:
>
> Look at the FLIP command to maintain your initial setup condition,
then use 
> AND H>Triggerpoint.
> 
> Once triggered, use FLIP again to reset.
> 
> ----- Original Message ----- 
> From: "bernardedmond01" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, June 14, 2007 4:54 PM
> Subject: [amibroker] Buysignal + wait
> 
> 
> > Hi all
> > How do I say the code in square brackets:
> >
> > Triggerpoint = HHV(H,3) + 0.01;
> > Longsetup = xxx;
> > Buy=Ref(Longsetup,-1) = = 1 [and wait until H>Triggerpoint];
> >
> > that is, the Lonsetup occurred on the previous bar but I don't enter
> > until the high>Triggerpoint (which may be on the same or a later bar)?
> >
> > Thanks
> >
> >
> >
> >
> > 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> > Yahoo! Groups Links
> >
> >
> >
>


Reply via email to