// Downloaded From https://www.WiseStockTrader.com
_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();