plot horizontal lines stopped working

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);
 
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.

It is a new day in a new year. You should be working fine tomorrow.
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
284 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top