Delete at the beginning of the code:
GraphColor = ParamColor("GarphColor",colorLightGrey);
And add below:
Graphcolor = IIf(direction ==1, ParamColor("X_Color", colorGreen),
ParamColor( "O_Color", colorRed));
PlotOHLC(Op, Hi, Lo, Cl,"", GraphColor ,
stylePointAndFigure|styleNoLabel, 0, 0 ,shiftChart);
--- In [email protected], "dmcleod1981" <[EMAIL PROTECTED]> wrote:
>
> Is there a way to change the color of the columns i.e. one color for
> x's and another for o's etc. I tried to use the "direction" in an iif
> statement but it didn't work.
>
> PS. it works great. It is interesting watching it work backwards in
> the replay mode although it doesn't scale to the time correctly.
>
> Thanks
> DM
>
>
>