Skip to main content

All in one Chart Ploter for Amibroker (AFL)

shravan2964 about 13 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 2)
  • Tags:
    amibroker

This is All-in-1 Chart Plotting Tool, it can plot (BarChart,CandleChart,Heikin_Ashi, LineChart), you can select from menu whatever type of chart you want to plot.

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("ChartTool");
style = ParamList("ChartStyle","styleBar|styleCandle|styleLine|Heikin_Ashi");

if(style == "styleBar")
{
   Plot(C,Date()+"Close",IIf(Close > Open,colorGreen,colorRed),styleBar|styleThick);
}
else if (style =="styleCandle")
{
Plot(C,Date()+"Close",IIf(Close > Open,colorGreen,colorRed),styleCandle|styleThick);

}
else if(style == "styleLine")
{
Plot(C,Date()+"Close",IIf(Close > Open,colorGreen,colorRed),styleLine|styleThick);
}
else if(style == "Heikin_Ashi")
{
              HaClose =EMA((O+H+L+C)/4,3); 
              HaOpen = AMA( Ref( HaClose, -1 ), 0.5 ); 
              HaHigh = Max( H, Max( HaClose, HaOpen ) ); 
              HaLow = Min( L, Min( HaClose, HaOpen ) ); 
              PlotOHLC( HaOpen, HaHigh, HaLow, HaClose, "Modified " + Name(), colorBlack,styleCandle | styleNoLabel );
}
else {
Plot(C,Date()+"Close",IIf(Close > Open,colorGreen,colorRed),styleBar|styleThick);
}

Title = Name() + " (" + StrLeft(FullName(), 15) + ") 
O: " + Open + ",
H: " + High + ", 
L: " + Low + ", 
C: " + Close +";
V: " + Volume;
_SECTION_END();

0 comments

Leave Comment

Please login here to leave a comment.