0% found this document useful (0 votes)
277 views

Amibroker Coding Example

This script plots candlesticks on a chart with light grey color and style. It identifies Doji, Hammer, bearish engulfing, and bullish engulfing candlestick patterns on the chart using different identification parameters. Matching patterns are plotted as shapes on the chart and corresponding text labels are plotted below the candles.

Uploaded by

ANIL1964
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
277 views

Amibroker Coding Example

This script plots candlesticks on a chart with light grey color and style. It identifies Doji, Hammer, bearish engulfing, and bullish engulfing candlestick patterns on the chart using different identification parameters. Matching patterns are plotted as shapes on the chart and corresponding text labels are plotted below the candles.

Uploaded by

ANIL1964
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Plot(C,"",colorLightGrey,styleCandle);

r=CdDoji( threshold = 0.05 );


s=CdHammer( rangefactor= 1.1 );
t=CdBearishEngulfing( bodyfactor = 0.4, rangefactor = 0.5);
u=CdBullishEngulfing( bodyfactor = 0.4, rangefactor = 0.5);
PlotShapes(r*shapeSmallCircle,colorRed,Layer=0,yposition=H,Offset=12);
PlotShapes(s*shapeCircle,colorYellow,Layer=0,yposition=H,Offset=12);
PlotShapes(t*shapeHollowSmallCircle,colorLime,Layer=0,yposition=H,Offset=12);
PlotShapes(u*shapeHollowCircle,colorBlue,Layer=0,yposition=H,Offset=12);
for(i=0;i<BarCount-1;i++)
{
if(r[i]==True)PlotText("Doji", i, H[i], colorRed, bkcolor = colorDefault
);
if(s[i]==True)PlotText("Hammer", i, H[i], colorYellow, bkcolor = colorDe
fault);
if(t[i]==True)PlotText("BearishEngulf", i, H[i], colorLime, bkcolor = co
lorDefault);
if(u[i]==True)PlotText("BullishEngulf", i, H[i], colorBlue, bkcolor = co
lorDefault);
}

You might also like