hi friends
need a small trick to plot histogram bars above zeroline.
This code plots above & below zeroline.
I need it to plot above zeroline.
any hints please!
regards
need a small trick to plot histogram bars above zeroline.
HTML:
_SECTION_BEGIN("OSCP");
SetChartBkColor(64);
r1 = Param( "Fast avg", 9, 2, 200, 1 );
r2 = Param( "Slow avg", 18, 2, 200, 1 );
BARCOLOR =IIf(OscP( r1,r2)>0,colorGreen,IIf(OscP( r1,r2)<0,colorRed,Null));
Plot( OscP( r1,r2), _DEFAULT_NAME(), BARCOLOR, styleHistogram );
_SECTION_END();
I need it to plot above zeroline.
any hints please!
regards