PureBytes Links
Trading Reference Links
|
It was the Equity (1) that did the trick...thanks.
--- In amibroker@xxxxxxxxxxxxxxx, ChrisB <kris45mar@xxx> wrote:
>
> g
>
> I see red sell arrows, green buy signals and lime buy arrows.
>
> If I understand you correctly you want to plot regular sells and
> applystops on the charts.
>
> See Help files on Applystops.
>
> If you need to use Plotshapes to show your Applystop exits you need
to
> include
> Equity(1) after your Applystops and before your Plotshapes lines.
>
> Also, use the Plotshapes ( ......, offset ); to place your Sell
arrow
> above the inbuilt red sell arrow.
>
> PlotShapes( ShapeS, IIf( Sell, colorPink, Null), 0 , H, -30);
>
> Also, you can try specifying which Applystop was hit:
>
> PlotShapes( IIf(Sell ==2, shapeDigit2, shapeNone),colorRed, 0, h,
40);
> // etc
>
> See also some notes I put together in the AB Backtester Basics.doc
in
> the file section:
> Checking the signals on the charts.
>
> Regards
>
> ChrisB
> gmorlosky wrote:
> >
> > I have a simple visual indicator that shows a red or green arrow
on
> > the price chart for buy or sell, BUT I'm not getting the multiple
> > stops to activate a sell, therfore producing a red down arrow.
What
> > am I missing here ?
> >
> > Buy = Cross( Close, EMA(Close, 35) );
> > Sell = Cross( EMA(Close,150) , C );
> >
> > Plot( Close, "C", colorWhite, styleLine);
> > Plot( EMA(Close,35) , "EMA-35", colorRed, styleLine);
> > Plot( EMA(Close,150) , "EMA-150", colorRed, styleLine);
> >
> > ApplyStop( stopTypeLoss, stopModePercent, 5, 0);
> > ApplyStop( stopTypeLoss, stopModeRisk, 10, 0);
> > ApplyStop( stopTypeProfit, stopModePercent, 5, 0);
> > ApplyStop( stopTypeProfit, stopModeRisk, 10, 0);
> > ApplyStop( stopTypeTrailing, stopModePercent, 5, 0);
> > ApplyStop( stopTypeTrailing, stopModeRisk, 10, 0);
> >
> > ShapeB = IIf(Buy,shapeUpArro w,shapeNone) ;
> > ShapeS = IIf(Sell,shapeDownA rrow,shapeNone) ;
> > PlotShapes( ShapeB, IIf( Buy, colorGreen, Null));
> > PlotShapes( ShapeS, IIf( Sell, colorRed, Null));
> >
> >
>
>
> --
> Regards
>
> ChrisB
>
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
<*> 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:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto: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/
|