Simple Coding Help - No Promise.

Kumar, Something like this might be what you are looking for.

// Super Thick moving average line //
Periods = Param( "Periods", 10, 2, 100, 1, 10 );
LineThickness = Param( "Line Thickness", 15, 1, 100, 1 );
Plot( EMA( Close, Periods ), "Thick EMA", colorRed, styleLine , Null, Null, 0, 1, LineThickness );
It gave me this error-
error.jpg
 

niftyoption

Well-Known Member
I need some help ..... in Ichimoku , Please write on " Kinjun sen line and Tenkan line " cross over indication mark if tenkan cross over with kijun line , green arrow mark bellow candle , if kijun line break down with tenkan line red color arrow above that candle with revers direction arrow , with cloud in that Kinjun and Tenkan lines , if tenkan cross over kijun fill corlor in that cloud blue and if kijun breaks tenkan line fill color red between kijun and tenkan lines ........ with color and arrows " On / Off " buttons ....this AFL for Amibroker 5.6 version with on of buttons and color change options .... ... Thank You Very Much


Ichimoku AFL


_SECTION_BEGIN("Tenkan-Sen");
TenkanPer = Param("Tenkan-Sen Period",9,1,100,1);
TenkanCol = ParamColor("Tenkan-Sen Color",colorRed);
TenkanSty = ParamStyle("Tenkan-Sen Style",styleLine | styleThick);
Tenkan = ( HHV(H,TenkanPer) + LLV(L,TenkanPer) ) / 2;
Plot(Tenkan,"Tenkan",TenkanCol,TenkanSty);
_SECTION_END();

_SECTION_BEGIN("Kijun-Sen");
KijunPer = Param("Kijun-Sen Period",26,1,100,1);
KijunCol = ParamColor("Kijun-Sen Color",colorBlue);
KijunSty = ParamStyle("Kijun-Sen Style",styleLine | styleThick);
Kijun = ( HHV(H,KijunPer) + LLV(L,KijunPer) ) / 2;
Plot(Kijun,"Kijun",KijunCol,KijunSty);
_SECTION_END();

_SECTION_BEGIN("Chikou Span");
ChikouShft = Param("Chikou Span Shift",26,1,100,1);
ChikouCol = ParamColor("Chikou Span Color",colorViolet);
ChikouSty = ParamStyle("Chikou Span Style",styleLine | styleNoLabel);
Chikou = C;
Plot(Chikou,"",ChikouCol,ChikouSty,Null,Null,-ChikouShft);
_SECTION_END();

_SECTION_BEGIN("Senkou-Kumo");
SenkouKumoShft = Param("Senkou-Kumo Shift",26,0,100,1);
_SECTION_END();

_SECTION_BEGIN("Senkou Span A");
SenkouACol = ParamColor("Senkou Span A Color",colorSeaGreen);
SenkouASty = ParamStyle("Senkou Span A Style",styleLine);
SenkouA = ( Tenkan + Kijun ) / 2;
Plot(SenkouA,"Senkou A",SenkouACol,SenkouASty,Null,Null,SenkouKumoShft) ;
_SECTION_END();

_SECTION_BEGIN("Senkou Span B");
SenkouBPer = Param("Senkou Span B Period",52,1,200,1);
SenkouBCol = ParamColor("Senkou Span B Color",colorPink);
SenkouBSty = ParamStyle("Senkou Span B Style",styleLine);
SenkouB = ( HHV(H,SenkouBPer) + LLV(L,SenkouBPer) ) / 2;
Plot(SenkouB,"Senkou B",SenkouBCol,SenkouBSty,Null,Null,SenkouKumoShft) ;
_SECTION_END();

_SECTION_BEGIN("Kumo");
KumoUpCol = ParamColor("Kumo UP Color",colorSeaGreen);
KumoDnCol = ParamColor("Kumo DN Color",colorPink);
PlotOHLC(SenkouA,SenkouA,SenkouB,SenkouB,"",IIf(SenkouA>SenkouB,KumoUpCol,KumoDnCol),styleCloud | styleNoLabel,Null,Null,SenkouKumoShft);
_SECTION_END();
 

Attachments

Last edited:
Plz Plz need code for plotting line for previous 3 months highest closing price....e.g. for this month ,should calculate highest closing of august,September n October n plot line....
 

Nikhil Dogra

Well-Known Member
I want ask for help on a real time scanner -
5min ltp trading > previous day high
5min ltp trading < previous day low
 

Similar threads