Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Profit Trailing Stoploss for Amibroker (AFL)

Rating:
5 / 5 (Votes 3)
Tags:
amibroker, stop loss

Using atr based indicator .

Similar Indicators / Formulas

NRTR WATR
Submitted by allexiss about 13 years ago
DODA BAND BUY SELL
Submitted by saas over 11 years ago
JMA Stoploss
Submitted by kuzukapama over 13 years ago
TSL & HL & New
Submitted by morgen over 12 years ago
Stop Loss Indicator
Submitted by nabcha over 14 years ago
ABKP Benchmark Bar
Submitted by amitabh over 14 years ago

Indicator / Formula

Copy & Paste Friendly
_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", colorWhite ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
TS1=HHV(L,10)-1*ATR(39);
TS2=HHV(L,10)-2*ATR(39);
TS3=LLV(H,10)+1*ATR(39);
TS4=LLV(H,10)+2*ATR(39);
WeekH = TimeFrameGetPrice("H", inWeekly, -1);		// yesterdays high
WeekL = TimeFrameGetPrice("L", inWeekly, -1);		//				low
WeekC = TimeFrameGetPrice("C", inWeekly, -1);		//				close
PP=(WEEKH+WEEKL+WEEKC)/3;
Buyprofit=pp+ 2.5*ATR(39);
Sellprofit=pp-2.5*ATR(39);
Plot(TS1,"TS1",colorWhite,styleLine);
//Plot(TS2,"TS2",colorYellow,styleLine);
Plot(TS3,"TS3",colorOrange,styleLine);
//Plot(TS4,"TS4",colorPink,styleLine);
Plot(Buyprofit,"bpr",colorRed,styleLine);
Plot(Sellprofit,"spr",colorSkyblue,styleLine);
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.

Back