PureBytes Links
Trading Reference Links
|
Ed, thanks for all your help.
really appreciated....Keith
--- In amibroker@xxxxxxxxxxxxxxx, "Ed P" <empottasch@xxx> wrote:
>
> keith see code below. If you want to see all signals after a setup use;
> //Buy = ExRem(Buy,setup);
> rgds, Ed
> the code:
> setup = H < Ref(H,-3) AND Ref(H,-1) < Ref(H,-3) AND Ref(H, -2) < Ref(H,
> -3) AND L > Ref(L,-3) AND Ref(L,-1) > Ref(L, -3) AND Ref(L, -2) > Ref(L,
> -3);vsetup = ValueWhen(setup,H,1);
> Buy = Cross(C,vsetup);Buy = ExRem(Buy,setup);
> SetChartBkColor( ParamColor("Color_bg", ColorRGB( 0, 0, 0 ) )
> );SetChartOptions(0, chartShowDates); GraphXSpace = 5;
> Plot(vsetup,"\nvsetup",ParamColor("Color_vsetup",ColorRGB(192,255,62)),1\
> ); Plot(C,"\nC",ParamColor("Color_close",ColorRGB(176,224,230)),64);
> PlotShapes(IIf(Buy,shapeUpTriangle,shapeNone),ParamColor("ColorA1_ss",Co\
> lorRGB(0,255,127)),0,L,-15);
> PlotShapes(IIf(setup,shapeSmallCircle,shapeNone),ParamColor("ColorA1_su"\
> ,ColorRGB(255,255,255)),0,L,-15);
> SetBarsRequired(sbrAll,sbrAll);
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "traderkeith2000" <kosborn3@>
> wrote:
> >
> > Edward, thanks....just one more thing.
> >
> > If I wanted to plot a symbol under the setup bar as well as the BUY
> bar what would I do?
> >
> > Thanks.....Keith
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Edward Pottasch" empottasch@ wrote:
> > >
> > > like this:
> > >
> > > setup = H < Ref(H,-3) AND Ref(H,-1) < Ref(H,-3) AND Ref(H, -2) <
> Ref(H, -3) AND L > Ref(L,-3) AND Ref(L,-1) > Ref(L, -3) AND Ref(L, -2) >
> Ref(L, -3);
> > > vsetup = ValueWhen(setup,H,1);
> > >
> > > Buy = Cross(C,vsetup);
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: traderkeith2000
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Sent: Wednesday, February 03, 2010 12:04 PM
> > > Subject: [amibroker] Triggering a buy after setup
> > >
> > >
> > >
> > > Hi, I am trying to generate a BUY signal after a 3 Bar setup where
> the setup bar is followed by two more bars. The BUY signal occurs when a
> future (after the two bars) bar CLOSE exceeds the HIGH of the setup bar.
> > >
> > > The following code (which I know is wrong) triggers the BUY on the
> first bar after the two bars after the setup bar.
> > >
> > > Buy = H < Ref(H,-3) AND Ref(H,-1) < Ref(H,-3) AND Ref(H, -2) <
> Ref(H, -3) AND L > Ref(L,-3) AND Ref(L,-1) > Ref(L, -3) AND Ref(L, -2) >
> Ref(L, -3);
> > >
> > > How do I delay the BUY for a variable number of bars until the
> next CLOSE exceeds the HIGH of the setup bar.
> > >
> > > Thanks.....Keith
> > >
> >
>
------------------------------------
**** 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/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
amibroker-digest@xxxxxxxxxxxxxxx
amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|