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

[amibroker] Plotting Applystop



PureBytes Links

Trading Reference Links

I was using the following code to plot applystop until 2 days ago. Then it stopped plotting. Do I need set anything elsewhere? I am using AB 4.76.0
 
Thanks
 
Mohan
 
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
 
_SECTION_BEGIN("WMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
x = WMA( P, Periods );
Plot( x, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
 
_SECTION_BEGIN("WMA1");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 200, 1, 10 );
y = WMA( P, Periods );
Plot( y, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
 
Buy=Cross(x,y);PlotShapes(shapeUpArrow*Buy,colorGreen);
Sell=Cross(y,x);PlotShapes(shapeDownArrow*Sell,colorRed);
 
ATRper = Param("atr Periods", 14, 2, 200, 1, 10 );
ATRMult = Param("atr mult", 3, 1, 20, 1, 10 );
 
ApplyStop(stopTypeTrailing, stopModePoint, ATRMult*ATR(ATRper), True, True );
//ApplyStop(stopTypeTrailing, stopModePoint, 2*ATR(5), True, True );
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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS