Hello,
I would appreciate any help with a difficulty I am having with the Formula Editor.
I have a formula which I use to paint the price bars red or blue based upon the value returned from an indicator.
I use:
...then the following will happen everytime:
setPriceBarColor(Color.RGB(0,0,128))
This successfully paints the whole bar, or candlestick, the chosen color. in this case Blue, (step two is for Red)
However, I want to modify this line so that when using candlestick bars, only the wicks will be painted, not the bodies which I want to remain the colors set with edit studies, (red and green for up and down)
I note from different articles that there is an option to set the wick color: setPriceBarColor(color [wickcolor] [, bthin] [,bhollow] ) I have tried many variations without success.
Thank you for any assistance!
David Hoffman, Lic. Ac.
I would appreciate any help with a difficulty I am having with the Formula Editor.
I have a formula which I use to paint the price bars red or blue based upon the value returned from an indicator.
I use:
...then the following will happen everytime:
setPriceBarColor(Color.RGB(0,0,128))
This successfully paints the whole bar, or candlestick, the chosen color. in this case Blue, (step two is for Red)
However, I want to modify this line so that when using candlestick bars, only the wicks will be painted, not the bodies which I want to remain the colors set with edit studies, (red and green for up and down)
I note from different articles that there is an option to set the wick color: setPriceBarColor(color [wickcolor] [, bthin] [,bhollow] ) I have tried many variations without success.
Thank you for any assistance!
David Hoffman, Lic. Ac.
Comment