PureBytes Links
Trading Reference Links
|
Here is a simple system with trail stop. Star is plotted at stop
Buy = Cross( MA(C,10), MA(C,100) );
Sell=0;
ApplyStop(2,1,10,0,0,1);
Plot(C,"close",colorBlack,styleCandle);
Equity(1); // THIS EVALUATES STOPS
PlotShapes(shapeStar*(Sell==4),colorRed,0,H,12);
On Apr 10, 2005 6:59 PM, Andrew Z <wizard@xxxxxxxxxxxxxxx> wrote:
>
> Sorry. I got my trailing stops and max stop loss confused. Obviously,
> the code below spikes when my applystop is triggered. It's the trailing
> stop that is plotted below and follows the price action.
>
> Confused, but getting there,
>
> Andrew.
>
> > Hmm...I have tried this code below my ApplyStop but all I get is a red
> > line at 0.
> >
> > I have Sell=2 for max loss, as follows:
> >
> > ApplyStop(stopTypeLoss, stopModePercent, 7);
> >
> > Equity(1); // THIS EVALUATES STOPS
> >
> > Plot(C,"C",1,128);
> > Plot(Sell==2,"ApplyStop Sell",colorRed,1|styleOwnScale);
> >
> > Andrew.
> >
> > > Thanks Graham. I did see this code and I "thought" I had tried it, but
> > > to no avail. I will have to give this another go then.
> > >
> > > Thanks,
> > > Andrew.
> > >
> > > > from Applystop in help files
> > > >
> > > > Corey Saxe
> > > > csaxe@xxxxxxx
> > > > 2003-03-01 23:33:13 For visual conformation of ApplyStop function, add
> > > > the following lines below your ApplyStop formula in Indicator Builder:
> > > >
> > > > Equity(1); // THIS EVALUATES STOPS
> > > >
> > > > Plot(Sell==4,"ApplyStop Sell",colorRed,1|styleOwnScale);
> > > > Plot(Cover==4,"ApplyStop Cover",colorGreen,1|styleOwnScale);
> > > >
> >
> >
> >
> > 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
> > <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
> >
> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service <http://docs.yahoo.com/info/terms/>.
> >
> >
>
>
> 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
>
>
>
>
>
--
Cheers
Graham
http://e-wire.net.au/~eb_kavan/
------------------------ Yahoo! Groups Sponsor --------------------~-->
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/
|