satyarishi
New member
I have below script that was working till yesterday. I have been using this script since last 6 months. Appreciate help with helping me understand what has chagned in TOS platform that made this script not plotting the lines. I sent email to TOS support and havent recieved any responses yet.
def high1 = if GetDay() == GetLastDay() then high(period = AggregationPeriod.DAY) else high1[1];
plot h1 = high1; h1.SetPaintingStrategy(PaintingStrategy.DASHES); h1.SetDefaultColor(COLOR.DARK_RED);
def high2 = if GetDay() == GetLastDay() - 1 then high(period = AggregationPeriod.DAY) else high2[1];
plot h2 = high2; h2.SetPaintingStrategy(PaintingStrategy.DASHES); h2.SetDefaultColor(COLOR.DARK_RED);
def high3 = if GetDay() == GetLastDay() - 2 then high(period = AggregationPeriod.DAY) else high3[1];
plot h3 = high3; h3.SetPaintingStrategy(PaintingStrategy.DASHES); h3.SetDefaultColor(COLOR.DARK_RED);
def high4 = if GetDay() == GetLastDay() - 3 then high(period = AggregationPeriod.DAY) else high4[1];
plot h4 = high4; h4.SetPaintingStrategy(PaintingStrategy.DASHES); h4.SetDefaultColor(COLOR.DARK_RED);
def high5 = if GetDay() == GetLastDay() - 4 then high(period = AggregationPeriod.DAY) else high5[1];
plot h5 = high5; h5.SetPaintingStrategy(PaintingStrategy.DASHES); h5.SetDefaultColor(COLOR.DARK_RED);
def high6 = if GetDay() == GetLastDay() - 5 then high(period = AggregationPeriod.DAY) else high6[1];
plot h6 = high6; h6.SetPaintingStrategy(PaintingStrategy.DASHES); h6.SetDefaultColor(COLOR.DARK_RED);
def high7 = if GetDay() == GetLastDay() - 6 then high(period = AggregationPeriod.DAY) else high7[1];
plot h7 = high7; h7.SetPaintingStrategy(PaintingStrategy.DASHES);h7.SetDefaultColor(COLOR.DARK_RED);
def high8 = if GetDay() == GetLastDay() - 7 then high(period = AggregationPeriod.DAY) else high8[1];
plot h8 = high8; h8.SetPaintingStrategy(PaintingStrategy.DASHES); h8.SetDefaultColor(COLOR.DARK_RED);
def high9 = if GetDay() == GetLastDay() - 8 then high(period = AggregationPeriod.DAY) else high9[1];
plot h9 = high9; h9.SetPaintingStrategy(PaintingStrategy.DASHES); h9.SetDefaultColor(COLOR.DARK_RED);
def high10 = if GetDay() == GetLastDay() - 9 then high(period = AggregationPeriod.DAY) else high10[1];
plot h10 = high10; h10.SetPaintingStrategy(PaintingStrategy.DASHES); h10.SetDefaultColor(COLOR.DARK_RED);
def high11 = if GetDay() == GetLastDay() - 10 then high(period = AggregationPeriod.DAY) else high11[1];
plot h11 = high11; h11.SetPaintingStrategy(PaintingStrategy.DASHES); h11.SetDefaultColor(COLOR.DARK_RED);
def low1 = if GetDay() == GetLastDay() then low(period = AggregationPeriod.DAY) else low1[1];
plot l1 = low1;l1.SetPaintingStrategy(PaintingStrategy.DASHES);l1.SetDefaultColor(Color.BLUE);
def low2 = if GetDay() == GetLastDay() - 1 then low(period = AggregationPeriod.DAY) else low2[1];
plot l2 = low2; l2.SetPaintingStrategy(PaintingStrategy.DASHES); l2.SetDefaultColor(Color.BLUE);
def low3 = if GetDay() == GetLastDay() - 2 then low(period = AggregationPeriod.DAY) else low3[1];
plot l3 = low3; l3.SetPaintingStrategy(PaintingStrategy.DASHES); l3.SetDefaultColor(Color.BLUE);
def low4 = if GetDay() == GetLastDay() - 3 then low(period = AggregationPeriod.DAY) else low4[1];
plot l4 = low4; l4.SetPaintingStrategy(PaintingStrategy.DASHES); l4.SetDefaultColor(Color.BLUE);
def low5 = if GetDay() == GetLastDay() - 4 then low(period = AggregationPeriod.DAY) else low5[1];
plot l5 = low5; l5.SetPaintingStrategy(PaintingStrategy.DASHES); l5.SetDefaultColor(Color.BLUE);
def low6 = if GetDay() == GetLastDay() - 5 then low(period = AggregationPeriod.DAY) else low5[1];
plot l6 = low6; l6.SetPaintingStrategy(PaintingStrategy.DASHES); l6.SetDefaultColor(Color.BLUE);
def low7 = if GetDay() == GetLastDay() - 6 then low(period = AggregationPeriod.DAY) else low7[1];
plot l7 = low7; l7.SetPaintingStrategy(PaintingStrategy.DASHES); l7.SetDefaultColor(Color.BLUE);
def low8 = if GetDay() == GetLastDay() - 7 then low(period = AggregationPeriod.DAY) else low8[1];
plot l8 = low8; l8.SetPaintingStrategy(PaintingStrategy.DASHES); l8.SetDefaultColor(Color.BLUE);
def low9 = if GetDay() == GetLastDay() - 8 then low(period = AggregationPeriod.DAY) else low9[1];
plot l9 = low9; l9.SetPaintingStrategy(PaintingStrategy.DASHES); l9.SetDefaultColor(Color.BLUE);
def low10 = if GetDay() == GetLastDay() - 9 then low(period = AggregationPeriod.DAY) else low10[1];
plot l10 = low10; l10.SetPaintingStrategy(PaintingStrategy.DASHES); l10.SetDefaultColor(Color.BLUE);
def low11 = if GetDay() == GetLastDay() - 10 then low(period = AggregationPeriod.DAY) else low11[1];
plot l11 = low11; l11.SetPaintingStrategy(PaintingStrategy.DASHES); l11.SetDefaultColor(Color.BLUE);
def high1 = if GetDay() == GetLastDay() then high(period = AggregationPeriod.DAY) else high1[1];
plot h1 = high1; h1.SetPaintingStrategy(PaintingStrategy.DASHES); h1.SetDefaultColor(COLOR.DARK_RED);
def high2 = if GetDay() == GetLastDay() - 1 then high(period = AggregationPeriod.DAY) else high2[1];
plot h2 = high2; h2.SetPaintingStrategy(PaintingStrategy.DASHES); h2.SetDefaultColor(COLOR.DARK_RED);
def high3 = if GetDay() == GetLastDay() - 2 then high(period = AggregationPeriod.DAY) else high3[1];
plot h3 = high3; h3.SetPaintingStrategy(PaintingStrategy.DASHES); h3.SetDefaultColor(COLOR.DARK_RED);
def high4 = if GetDay() == GetLastDay() - 3 then high(period = AggregationPeriod.DAY) else high4[1];
plot h4 = high4; h4.SetPaintingStrategy(PaintingStrategy.DASHES); h4.SetDefaultColor(COLOR.DARK_RED);
def high5 = if GetDay() == GetLastDay() - 4 then high(period = AggregationPeriod.DAY) else high5[1];
plot h5 = high5; h5.SetPaintingStrategy(PaintingStrategy.DASHES); h5.SetDefaultColor(COLOR.DARK_RED);
def high6 = if GetDay() == GetLastDay() - 5 then high(period = AggregationPeriod.DAY) else high6[1];
plot h6 = high6; h6.SetPaintingStrategy(PaintingStrategy.DASHES); h6.SetDefaultColor(COLOR.DARK_RED);
def high7 = if GetDay() == GetLastDay() - 6 then high(period = AggregationPeriod.DAY) else high7[1];
plot h7 = high7; h7.SetPaintingStrategy(PaintingStrategy.DASHES);h7.SetDefaultColor(COLOR.DARK_RED);
def high8 = if GetDay() == GetLastDay() - 7 then high(period = AggregationPeriod.DAY) else high8[1];
plot h8 = high8; h8.SetPaintingStrategy(PaintingStrategy.DASHES); h8.SetDefaultColor(COLOR.DARK_RED);
def high9 = if GetDay() == GetLastDay() - 8 then high(period = AggregationPeriod.DAY) else high9[1];
plot h9 = high9; h9.SetPaintingStrategy(PaintingStrategy.DASHES); h9.SetDefaultColor(COLOR.DARK_RED);
def high10 = if GetDay() == GetLastDay() - 9 then high(period = AggregationPeriod.DAY) else high10[1];
plot h10 = high10; h10.SetPaintingStrategy(PaintingStrategy.DASHES); h10.SetDefaultColor(COLOR.DARK_RED);
def high11 = if GetDay() == GetLastDay() - 10 then high(period = AggregationPeriod.DAY) else high11[1];
plot h11 = high11; h11.SetPaintingStrategy(PaintingStrategy.DASHES); h11.SetDefaultColor(COLOR.DARK_RED);
def low1 = if GetDay() == GetLastDay() then low(period = AggregationPeriod.DAY) else low1[1];
plot l1 = low1;l1.SetPaintingStrategy(PaintingStrategy.DASHES);l1.SetDefaultColor(Color.BLUE);
def low2 = if GetDay() == GetLastDay() - 1 then low(period = AggregationPeriod.DAY) else low2[1];
plot l2 = low2; l2.SetPaintingStrategy(PaintingStrategy.DASHES); l2.SetDefaultColor(Color.BLUE);
def low3 = if GetDay() == GetLastDay() - 2 then low(period = AggregationPeriod.DAY) else low3[1];
plot l3 = low3; l3.SetPaintingStrategy(PaintingStrategy.DASHES); l3.SetDefaultColor(Color.BLUE);
def low4 = if GetDay() == GetLastDay() - 3 then low(period = AggregationPeriod.DAY) else low4[1];
plot l4 = low4; l4.SetPaintingStrategy(PaintingStrategy.DASHES); l4.SetDefaultColor(Color.BLUE);
def low5 = if GetDay() == GetLastDay() - 4 then low(period = AggregationPeriod.DAY) else low5[1];
plot l5 = low5; l5.SetPaintingStrategy(PaintingStrategy.DASHES); l5.SetDefaultColor(Color.BLUE);
def low6 = if GetDay() == GetLastDay() - 5 then low(period = AggregationPeriod.DAY) else low5[1];
plot l6 = low6; l6.SetPaintingStrategy(PaintingStrategy.DASHES); l6.SetDefaultColor(Color.BLUE);
def low7 = if GetDay() == GetLastDay() - 6 then low(period = AggregationPeriod.DAY) else low7[1];
plot l7 = low7; l7.SetPaintingStrategy(PaintingStrategy.DASHES); l7.SetDefaultColor(Color.BLUE);
def low8 = if GetDay() == GetLastDay() - 7 then low(period = AggregationPeriod.DAY) else low8[1];
plot l8 = low8; l8.SetPaintingStrategy(PaintingStrategy.DASHES); l8.SetDefaultColor(Color.BLUE);
def low9 = if GetDay() == GetLastDay() - 8 then low(period = AggregationPeriod.DAY) else low9[1];
plot l9 = low9; l9.SetPaintingStrategy(PaintingStrategy.DASHES); l9.SetDefaultColor(Color.BLUE);
def low10 = if GetDay() == GetLastDay() - 9 then low(period = AggregationPeriod.DAY) else low10[1];
plot l10 = low10; l10.SetPaintingStrategy(PaintingStrategy.DASHES); l10.SetDefaultColor(Color.BLUE);
def low11 = if GetDay() == GetLastDay() - 10 then low(period = AggregationPeriod.DAY) else low11[1];
plot l11 = low11; l11.SetPaintingStrategy(PaintingStrategy.DASHES); l11.SetDefaultColor(Color.BLUE);