chim_non
Moderator
Làm theo Pattern Explorer cũng được, nếu không tự vẽ cho nó đẹp:Anh chim ơi cài Ichimoku vào thì làm thế nào?
Tạo 1 cái AFL, copy cái này vào,xong:
_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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("Ichimoku");
kijunsen = ( HHV( H, 26 ) + LLV( L, 26) )/2;// standard, base, or kijun-sen line
tenkansen = ( HHV( H, 9 ) + LLV( L, 9 ) )/2; // turning, conversion, or tenkan-sen line
chikou = C; // delayed, lagging, or chikou span
SpanA = (( kijunsen + tenkansen )/2);// senkou span A, kumo, or clouds
SpanB = (HHV( H, 52) + LLV(L, 52))/2;// senkou span B, kumo, or clouds
Plot(kijunsen,"Kijun Sen",32,styleThick); // standard, base, or kijun-sen line
Plot(tenkansen,"Tenkan Sen",27,styleThick); // turning, conversion, or tenkan-sen line
Plot(chikou ,"Chikou Span",38,styleThick,Null,Null,-25); // delayed, lagging, or chikou span
Plot(SpanA,"Senkou Span A",colorGreen,1,0,0,26); // senkou span A, kumo, or clouds
Plot(SpanB,"Senkou Span B",colorSeaGreen,1,0,0,26); // senkou span B, kumo, or clouds
PlotOHLC(SpanA,SpanB,SpanA,SpanB,"Kumo",IIf(SpanA>SpanB,colorSeaGreen,colorLightOrange),styleCloud|4096,0,0,26); //Kumo clouds
_SECTION_END();