Hi Bob
@kckilla
I have looked at the premarket for the PriceTimeGrid and the Price Lines display premarket. Are you talking about the Vertical Time Lines specifically?
Bob
Hi Bob, hope you're having a great weekend. I'm using the Auto Price Levels with horizontal lines only. The code would display previous day's premarket lines but won't paint new premarket lines until market open. Below is the one I'm using. I will screenshot tomorrow premarket session so you can see what I'm talking about.
#Auto Price Levels
#@rlohmeyer shared on UseThinkscript
#updated code 2/17/21
input PLI = 1.00;
input showMidpoints = yes;
DefineGlobalColor("PLI",color.dark_gray);
DefineGlobalColor("MP",color.dark_gray);
def op = open(period = AggregationPeriod.day);
def ST = Round(op, 0);
def MP = PLI/2;
#Plot ST
plot PLS = ST;
PLS.SetDefaultColor(color.yellow);
PLS.HideTitle();
PLS.SetPaintingStrategy(PaintingStrategy.dashes);
#ST Up
plot MU1 = if showMidpoints then ST + MP else Double.NaN;
MU1.SetDefaultColor(globalColor("MP"));
MU1.HideTitle();
MU1.SetPaintingStrategy(PaintingStrategy.dashes);
MU1.HideBubble();
plot PU1 = if ST > 0 then ST + PLI else Double.NaN;
PU1.SetDefaultColor(globalColor("PLI"));
PU1.HideTitle();
PU1.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU2 = if showMidpoints then PU1 + MP else Double.NaN;
MU2.SetDefaultColor(globalColor("MP"));
MU2.HideTitle();
MU2.SetPaintingStrategy(PaintingStrategy.dashes);
MU2.HideBubble();
plot PU2 = if ST > 0 then ST + (2 * PLI)else Double.NaN;
PU2.SetDefaultColor(globalColor("PLI"));
PU2.HideTitle();
PU2.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU3 = if showMidpoints then PU2 + MP else Double.NaN;
MU3.SetDefaultColor(globalColor("MP"));
MU3.HideTitle();
MU3.SetPaintingStrategy(PaintingStrategy.dashes);
MU3.HideBubble();
plot PU3 = if ST > 0 then ST + (3 * PLI)else Double.NaN;
PU3.SetDefaultColor(globalColor("PLI"));
PU3.HideTitle();
PU3.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU4 = if showMidpoints then PU3 + MP else Double.NaN;
MU4.SetDefaultColor(globalColor("MP"));
MU4.HideTitle();
MU4.SetPaintingStrategy(PaintingStrategy.dashes);
MU4.HideBubble();
plot PU4 = if ST > 0 then ST + (4 * PLI)else Double.NaN;
PU4.SetDefaultColor(globalColor("PLI"));
PU4.HideTitle();
PU4.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU5 = if showMidpoints then PU4 + MP else Double.NaN;
MU5.SetDefaultColor(globalColor("MP"));
MU5.HideTitle();
MU5.SetPaintingStrategy(PaintingStrategy.dashes);
MU5.HideBubble();
plot PU5 = if ST > 0 then ST + (5 * PLI)else Double.NaN;
PU5.SetDefaultColor(globalColor("PLI"));
PU5.HideTitle();
PU5.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU6 = if showMidpoints then PU5 + MP else Double.NaN;
MU6.SetDefaultColor(globalColor("MP"));
MU6.HideTitle();
MU6.SetPaintingStrategy(PaintingStrategy.dashes);
MU6.HideBubble();
plot PU6 = if ST > 0 then ST + (6 * PLI)else Double.NaN;
PU6.SetDefaultColor(globalColor("PLI"));
PU6.HideTitle();
PU6.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU7 = if showMidpoints then PU6 + MP else Double.NaN;
MU7.SetDefaultColor(globalColor("MP"));
MU7.HideTitle();
MU7.SetPaintingStrategy(PaintingStrategy.dashes);
MU7.HideBubble();
plot PU7 = if ST > 0 then ST + (7 * PLI)else Double.NaN;
PU7.SetDefaultColor(globalColor("PLI"));
PU7.HideTitle();
PU7.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU8 = if showMidpoints then PU7 + MP else Double.NaN;
MU8.SetDefaultColor(globalColor("MP"));
MU8.HideTitle();
MU8.SetPaintingStrategy(PaintingStrategy.dashes);
MU8.HideBubble();
plot PU8 = if ST > 0 then ST + (8 * PLI)else Double.NaN;
PU8.SetDefaultColor(globalColor("PLI"));
PU8.HideTitle();
PU8.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU9 = if showMidpoints then PU8 + MP else Double.NaN;
MU9.SetDefaultColor(globalColor("MP"));
MU9.HideTitle();
MU9.SetPaintingStrategy(PaintingStrategy.dashes);
MU9.HideBubble();
plot PU9 = if ST > 0 then ST + (9 * PLI)else Double.NaN;
PU9.SetDefaultColor(globalColor("PLI"));
PU9.HideTitle();
PU9.SetPaintingStrategy(PaintingStrategy.dashes);
plot MU10 = if showMidpoints then PU9 + MP else Double.NaN;
MU10.SetDefaultColor(globalColor("MP"));
MU10.HideTitle();
MU10.SetPaintingStrategy(PaintingStrategy.dashes);
MU10.HideBubble();
plot PU10 = if ST > 0 then ST + (10 * PLI)else Double.NaN;
PU10.SetDefaultColor(globalColor("PLI"));
PU10.HideTitle();
PU10.SetPaintingStrategy(PaintingStrategy.dashes);
#STDown
plot MD1 = if showMidpoints then ST - MP else Double.NaN;
MD1.SetDefaultColor(globalColor("MP"));
MD1.HideTitle();
MD1.SetPaintingStrategy(PaintingStrategy.dashes);
MD1.HideBubble();
plot PD1 = if ST > 0 then ST - PLI else Double.NaN;
PD1 .SetDefaultColor(globalColor("PLI"));
PD1 .HideTitle();
PD1 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD2 = if showMidpoints then PD1 - MP else Double.NaN;
MD2 .SetDefaultColor(globalColor("MP"));
MD2 .HideTitle();
MD2 .SetPaintingStrategy(PaintingStrategy.dashes);
MD2 .HideBubble();
plot PD2 = if ST > 0 then ST - (2 * PLI) else Double.NaN;
PD2 .SetDefaultColor(globalColor("PLI"));
PD2 .HideTitle();
PD2 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD3 = if showMidpoints then PD2 - MP else Double.NaN;
MD3 .SetDefaultColor(globalColor("MP"));
MD3 .HideTitle();
MD3 .SetPaintingStrategy(PaintingStrategy.dashes);
MD3 .HideBubble();
plot PD3 = if ST > 0 then ST - (3 * PLI)else Double.NaN;
PD3 .SetDefaultColor(globalColor("PLI"));
PD3 .HideTitle();
PD3 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD4 = if showMidpoints then PD3 - MP else Double.NaN;
MD4 .SetDefaultColor(globalColor("MP"));
MD4 .HideTitle();
MD4 .SetPaintingStrategy(PaintingStrategy.dashes);
MD4 .HideBubble();
plot PD4 = if ST > 0 then ST - (4 * PLI)else Double.NaN;
PD4 .SetDefaultColor(globalColor("PLI"));
PD4 .HideTitle();
PD4 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD5 = if showMidpoints then PD4 - MP else Double.NaN;
MD5 .SetDefaultColor(globalColor("MP"));
MD5 .HideTitle();
MD5 .SetPaintingStrategy(PaintingStrategy.dashes);
MD5 .HideBubble();
plot PD5 = if ST > 0 then ST - (5 * PLI)else Double.NaN;
PD5 .SetDefaultColor(globalColor("PLI"));
PD5 .HideTitle();
PD5 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD6 = if showMidpoints then PD5 - MP else Double.NaN;
MD6 .SetDefaultColor(globalColor("MP"));
MD6 .HideTitle();
MD6 .SetPaintingStrategy(PaintingStrategy.dashes);
MD6 .HideBubble();
plot PD6 = if ST > 0 then ST - (6 * PLI)else Double.NaN;
PD6 .SetDefaultColor(globalColor("PLI"));
PD6 .HideTitle();
PD6 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD7 = if showMidpoints then PD6 - MP else Double.NaN;
MD7 .SetDefaultColor(globalColor("MP"));
MD7 .HideTitle();
MD7 .SetPaintingStrategy(PaintingStrategy.dashes);
MD7 .HideBubble();
plot PD7 = if ST > 0 then ST - (7 * PLI)else Double.NaN;
PD7 .SetDefaultColor(globalColor("PLI"));
PD7 .HideTitle();
PD7 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD8 = if showMidpoints then PD7 - MP else Double.NaN;
MD8 .SetDefaultColor(globalColor("MP"));
MD8 .HideTitle();
MD8 .SetPaintingStrategy(PaintingStrategy.dashes);
MD8 .HideBubble();
plot PD8 = if ST > 0 then ST - (8 * PLI)else Double.NaN;
PD8 .SetDefaultColor(globalColor("PLI"));
PD8 .HideTitle();
PD8 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD9 = if showMidpoints then PD8 - MP else Double.NaN;
MD9 .SetDefaultColor(globalColor("MP"));
MD9.HideTitle();
MD9 .SetPaintingStrategy(PaintingStrategy.dashes);
MD9.HideBubble();
plot PD9 = if ST > 0 then ST - (9 * PLI)else Double.NaN;
PD9 .SetDefaultColor(globalColor("PLI"));
PD9 .HideTitle();
PD9 .SetPaintingStrategy(PaintingStrategy.dashes);
plot MD10 = if showMidpoints then PD9 - MP else Double.NaN;
MD10 .SetDefaultColor(globalColor("MP"));
MD10.HideTitle();
MD10 .SetPaintingStrategy(PaintingStrategy.dashes);
MD10.HideBubble();
plot PD10 = if ST > 0 then ST - (10 * PLI)else Double.NaN;
PD10 .SetDefaultColor(globalColor("PLI"));
PD10 .HideTitle();
PD10 .SetPaintingStrategy(PaintingStrategy.dashes);