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

Ichimoku for Amibroker (AFL)

Rating:
3 / 5 (Votes 5)
Tags:
amibroker, ichimoku

Ichimoku chart consists of 5 lines. Four of them are calculated simply by taking the average of the highest price and the lowest price.

1. Tenkan-Sen = Conversion Line = (Highest High + Lowest Low) / 2, used for 9 sessions

2. Kijun-Sen = Base Line = (Highest High + Lowest Low) / 2, used for 26 sessions

3. Chikou Span = Lagging Span = Today’s closing price, drawn for the next 26 sessions

4. Senkou Span A = Leading Span A = (Tenkan-Sen + Kijun-Sen) / 2, drawn for the first 26 sessions

Senkou Span B = Leading Span B = (Highest High + Lowest Low) / 2, used for 52 sessions, drawn for the first 26 sessions. Also, the distance between Leading Span A and B is called “Kumo” or “Cloud”.

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%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("Ichimoku");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )
{
ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));
}

Daogam1 = ( HHV( H, 65 ) + LLV( L, 65) )/2;
Daogam2 = ( HHV( H, 129 ) + LLV( L, 129) )/2;
KS = ( HHV( H, 17 ) + LLV( L, 17) )/2;
TS = ( HHV( H, 9 ) + LLV( L, 9 ) )/2;
//CS = Ref( C, 26 );
CS=C;
Span1 = (( KS + TS )/2);
Span2 = (HHV( H, 26) + LLV(L, 26))/2;

Plot(Daogam2,"Daogam2",colorWhite,styleThick);
Plot(Daogam1,"Daogam1",colorOrange,styleThick);
Plot(KS,"KS",colorBlue,styleThick);
Plot(TS,"TS",colorRed,styleThick);
Plot(CS,"",colorBrightGreen,styleLine|styleThick,Null,Null,-26);
Plot(Span1,"",colorBrown,1,0,0,26);
Plot(Span2,"",colorLightOrange,1,0,0,26);
PlotOHLC(Span1,Span2,Span1,Span2,"",IIf(Span1>Span2,colorLime,colorLightOrange),styleCloud|4096,0,0,26);
_SECTION_END();

_SECTION_BEGIN("TS_KS Crossover");
Buy = Cross( TS,KS );
Sell = Cross( KS,TS );
PlotShapes(IIf(Sell==1, shapeDownArrow, shapeNone), colorRed, 0,High, Offset=-15);
PlotShapes(IIf(Buy==1, shapeUpArrow , shapeNone), colorBlue, 0,Low, Offset=-15);
_SECTION_END();

2 comments

1. poriaunited5

hi
thanks you is good indicator

2. Tiblemont

Thanks
I put it in my system

Leave Comment

Please login here to leave a comment.

Back