Under a given conditions, I want to paint either the upper or lower wick and the body of a bar
The problem is the second line of the code reset the size of the previous line value given by the variable "barsize". See both condition in the attached picture
Martin
Code: Select all
if High[1] > maxlist(open,close)and Low[1] < minlist(open,close) then begin
print ("colored bar_1");
if open <= close then begin
PlotPb(open,close ,"colorbar",upcolor, default,barsize);
PlotPb(low,open,"colorbar_1",upcolor,default,1);
end
else begin
PlotPb(Open,close ,"colorbar",dncolor, default,barsize);
PlotPb(high,close,"colorbar_1",dncolor,default,1);
end;
end
https://i.imgur.com/yZxKGvX.png