In 10.6, if I have a script where, in preMain(), I have:
setComputeOnClose();
setColorPriceBars(true);
and, in main(), I go about setting the current price bar color with setPriceBarColor(color, Color.black, true), then current real-time price bar will be the prior bar's color. This is something which goes back 9 years to version 7.9.
In 11.4, if I have the same thing, then the current real-time price bar will be some grey, fat-wick candle until the price closes.
If I exclude setComputeOnClose(), then I've got problems with the current candle keeping the same closing price color as when setComputeOnClose() is in preMain(). If doesn't make sense (to me). You would think that setting the candle color on every tick coming in would wind up giving you the same colored chart as though you had had setComputeOnClose() on the whole time but that's not the case.
I would REALLY, REALLY like the 10.6 behavior back where you don't give me some fat grey candle (if setCompueOnClose() is in preMain()) but rather maintain the color of the previous candle until I set it properly on the close. Why *shouldn't* the current candle BE the prior candle's color in the first place? After all, with setComputeOnClose(), I *should* have control of the current real-time color based on what I said it should be from the last time I set it (on the prior bar's close). [7.9 -> 10.6 got this right, IMHO, something got "fixed" which wasn't broken]
setComputeOnClose();
setColorPriceBars(true);
and, in main(), I go about setting the current price bar color with setPriceBarColor(color, Color.black, true), then current real-time price bar will be the prior bar's color. This is something which goes back 9 years to version 7.9.
In 11.4, if I have the same thing, then the current real-time price bar will be some grey, fat-wick candle until the price closes.
If I exclude setComputeOnClose(), then I've got problems with the current candle keeping the same closing price color as when setComputeOnClose() is in preMain(). If doesn't make sense (to me). You would think that setting the candle color on every tick coming in would wind up giving you the same colored chart as though you had had setComputeOnClose() on the whole time but that's not the case.
I would REALLY, REALLY like the 10.6 behavior back where you don't give me some fat grey candle (if setCompueOnClose() is in preMain()) but rather maintain the color of the previous candle until I set it properly on the close. Why *shouldn't* the current candle BE the prior candle's color in the first place? After all, with setComputeOnClose(), I *should* have control of the current real-time color based on what I said it should be from the last time I set it (on the prior bar's close). [7.9 -> 10.6 got this right, IMHO, something got "fixed" which wasn't broken]
Comment