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

Long Term Trend for Amibroker (AFL)

Rating:
3 / 5 (Votes 3)
Tags:
trading system, amibroker

Basic breakout trend following system.

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("Long Term Trend");
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() ); 
Filter = C > 5 AND V>10;
///////////////////////////////////////
DonchianUpper =HHV(Ref(H,-1),100);
DonchianLower = LLV(Ref(L,-1),100);
DonchianMiddle = (DonchianUpper+DonchianLower)/2;
Plot(DonchianUpper,"DU",colorBlue,styleLine);
Plot(DonchianMiddle,"DM",colorGreen,styleLine);
Plot(DonchianLower,"DL",colorRed,styleLine);

////////////////////////////////////////////////
Buy= C > DonchianUpper ;
Sell= C < MA(C,50) OR C <DonchianLower ; 
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
shape = Buy * shapeUpArrow + Sell * shapeDownArrow;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ),0, IIf( Buy, Low, High ) );






3 comments

1. teju

nice afl

2. kopra

nice afl…thanks

3. HUNG8888

Hi every body,
Now i want analysis in amibroker weekly chart but amibroker show daily chart. Please help me. Thsnks you.
My email nguyentranhung6688@gmail.com.

Leave Comment

Please login here to leave a comment.

Back