Plug & Play Price Levels

ssmike123

Member
Daily Levels For Futures. I have searched to see if I can find what I am looking for, unfortunately nothing yet.
This is rather a simple study. This is Plug& play for Futures Market. Straight lines, on chart based on price. In this study you can plug in various Price level numbers, choose Colors & Thickness, Starts plotting at 6PM EST & Stops Plotting at 5 PM EST. At 6pm EST a new Plot starts. In this Study, at the beginning of new session, 6 PM EST, updated Price levels need to be written in the Study. Need about 15-20 Lines. Can anyone help or point me to right direction?
 
Solution
@Alex, thank you for sharing this study. Will test it in real time during market open & Close.
Think time element is missing in this Study. I am hoping to be able to stop printing the lines to Right by 5 PM EST & Start a new line by 6 PM EST, so when I plug in New numbers after 6 PM EST previous sessions lines are kept intact on the chart. New lines for current session with different set of numbers will be ploted at different levels.

Changing an input refreshes the entire chart, the previous days' values can not be retained in this way. You would need to develop a formula to automatically draw and adjust each of the lines, or draw them by hand.
Code:
input price1 = 0;
input price2 = 0;
input price3 = 0;
input price4 = 0;
input price5 = 0;
input price6 = 0;
input price7 = 0;
input price8 = 0;
input price9 = 0;
input price10 = 0;
input price11 = 0;
input price12 = 0;
input price13 = 0;
input price14 = 0;
input price15 = 0;
input price16 = 0;
input price17 = 0;
input price18 = 0;
input price19 = 0;
input price20 = 0;
input price21 = 0;
input price22 = 0;
input price23 = 0;
input price24 = 0;
input price25 = 0;
plot p1 = price1;
p1.setPaintingStrategy(paintingStrategy.line);
p1.setDefaultColor(color.white);
p1.SetLineWeight(5);
plot p2 = price2;
p2.setPaintingStrategy(paintingStrategy.line);
p2.setDefaultColor(color.white);
p2.SetLineWeight(5);
plot p3 = price3;
p3.setPaintingStrategy(paintingStrategy.line);
p3.setDefaultColor(color.white);
p3.SetLineWeight(5);
plot p4 = price4;
p4.setPaintingStrategy(paintingStrategy.line);
p4.setDefaultColor(color.white);
p4.SetLineWeight(5);
plot p5 = price5;
p5.setPaintingStrategy(paintingStrategy.line);
p5.setDefaultColor(color.white);
p5.SetLineWeight(5);
plot p6 = price6;
p6.setPaintingStrategy(paintingStrategy.line);
p6.setDefaultColor(color.white);
p6.SetLineWeight(5);
plot p7 = price7;
p7.setPaintingStrategy(paintingStrategy.line);
p7.setDefaultColor(color.white);
p7.SetLineWeight(5);
plot p8 = price8;
p8.setPaintingStrategy(paintingStrategy.line);
p8.setDefaultColor(color.white);
p8.SetLineWeight(5);
plot p9 = price9;
p9.setPaintingStrategy(paintingStrategy.line);
p9.setDefaultColor(color.white);
p9.SetLineWeight(5);
plot p10 = price10;
p10.setPaintingStrategy(paintingStrategy.line);
p10.setDefaultColor(color.white);
p10.SetLineWeight(5);
plot p11 = price11;
p11.setPaintingStrategy(paintingStrategy.line);
p11.setDefaultColor(color.white);
p11.SetLineWeight(5);
plot p12 = price12;
p12.setPaintingStrategy(paintingStrategy.line);
p12.setDefaultColor(color.white);
p12.SetLineWeight(5);
plot p13 = price13;
p13.setPaintingStrategy(paintingStrategy.line);
p13.setDefaultColor(color.white);
p13.SetLineWeight(5);
plot p14 = price14;
p14.setPaintingStrategy(paintingStrategy.line);
p14.setDefaultColor(color.white);
p14.SetLineWeight(5);
plot p15 = price15;
p15.setPaintingStrategy(paintingStrategy.line);
p15.setDefaultColor(color.white);
p15.SetLineWeight(5);
plot p16 = price16;
p16.setPaintingStrategy(paintingStrategy.line);
p16.setDefaultColor(color.white);
p16.SetLineWeight(5);
plot p17 = price17;
p17.setPaintingStrategy(paintingStrategy.line);
p17.setDefaultColor(color.white);
p17.SetLineWeight(5);
plot p18 = price18;
p18.setPaintingStrategy(paintingStrategy.line);
p18.setDefaultColor(color.white);
p18.SetLineWeight(5);
plot p19 = price19;
p19.setPaintingStrategy(paintingStrategy.line);
p19.setDefaultColor(color.white);
p19.SetLineWeight(5);
plot p20 = price20;
p20.setPaintingStrategy(paintingStrategy.line);
p20.setDefaultColor(color.white);
p20.SetLineWeight(5);
plot p21 = price21;
p21.setPaintingStrategy(paintingStrategy.line);
p21.setDefaultColor(color.white);
p21.SetLineWeight(5);
plot p22 = price22;
p22.setPaintingStrategy(paintingStrategy.line);
p22.setDefaultColor(color.white);
p22.SetLineWeight(5);
plot p23 = price23;
p23.setPaintingStrategy(paintingStrategy.line);
p23.setDefaultColor(color.white);
p23.SetLineWeight(5);
plot p24 = price24;
p24.setPaintingStrategy(paintingStrategy.line);
p24.setDefaultColor(color.white);
p24.SetLineWeight(5);
plot p25 = price25;
p25.setPaintingStrategy(paintingStrategy.line);
p25.setDefaultColor(color.white);
p25.SetLineWeight(5);
 

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

@Alex, thank you for sharing this study. Will test it in real time during market open & Close.
Think time element is missing in this Study. I am hoping to be able to stop printing the lines to Right by 5 PM EST & Start a new line by 6 PM EST, so when I plug in New numbers after 6 PM EST previous sessions lines are kept intact on the chart. New lines for current session with different set of numbers will be ploted at different levels.
 
@Alex, thank you for sharing this study. Will test it in real time during market open & Close.
Think time element is missing in this Study. I am hoping to be able to stop printing the lines to Right by 5 PM EST & Start a new line by 6 PM EST, so when I plug in New numbers after 6 PM EST previous sessions lines are kept intact on the chart. New lines for current session with different set of numbers will be ploted at different levels.
Yeah I understand I'm just not a thinkscript expert and so I'm not sure how to add that function so I thought I would share what I have as a starting point...
 
@Alex, thank you for sharing this study. Will test it in real time during market open & Close.
Think time element is missing in this Study. I am hoping to be able to stop printing the lines to Right by 5 PM EST & Start a new line by 6 PM EST, so when I plug in New numbers after 6 PM EST previous sessions lines are kept intact on the chart. New lines for current session with different set of numbers will be ploted at different levels.

Changing an input refreshes the entire chart, the previous days' values can not be retained in this way. You would need to develop a formula to automatically draw and adjust each of the lines, or draw them by hand.
 
Solution

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
440 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