Using lines to return trig theta values of angles from previous candle close

Hi -- very new to coding ThinkScript. I am kind of frustrated as I'm trying to get a line drawn from the previous bar close to various points on the next candle -- from close[1] to open, high, low, etc in order to create variables and log the angles as radial theta values from previous close. It seems like a simple task, but it seems ThinkScript likes to draw lines from close to close or open to open easily, but if they are not the same type, the line is way out of whack.

Any help would be appreciated, thank you.
 
hi mountainking333, welcome.
post your code so we can see what you are trying. in a new post, click on this icon at the top </>. then paste your code in the pop up window. for code type, pick ruby. it doesn't matter what type, different types will change the look of the code.

you mention trying to do several things, draw lines, calc angles, store values,...
try to think about what you want to see on the chart, and leave out the guessing of some middle steps that may or may not help.
lines can be draw from any point to any point on a chart. if you want separate lines that are 1 bar wide, there may be additional code needed so they don't appear as a continious line.

...do you want to see 3 or 4 lines drawn, from every candle, to the next?
...do you want to see a chartbubble under every candle, listing the 4 angles, from previous close to the next bar?
...or show angles , in labels, at the top of the chart, for just to the most recent candle?
...do you need the angles? or just figure out if the next bar parameters are above or below the previous close?
...what do you want to do with the data? do you want to count how many times something happens?

i hope this gives you some ideas for advancing your study.
 
Hi -- very new to coding ThinkScript. I am kind of frustrated as I'm trying to get a line drawn from the previous bar close to various points on the next candle -- from close[1] to open, high, low, etc in order to create variables and log the angles as radial theta values from previous close. It seems like a simple task, but it seems ThinkScript likes to draw lines from close to close or open to open easily, but if they are not the same type, the line is way out of whack.

Any help would be appreciated, thank you.
Try the line drawing part here: https://usethinkscript.com/threads/broadening-formation-pattern-for-thinkorswim.2732/post-38894
Once you know certain points, to draw, you can extrapolate them.
I am looking at some of your recent posts. I am going to guess that you really don't need to draw them, but rather detect slopes.
 
Try the line drawing part here: https://usethinkscript.com/threads/broadening-formation-pattern-for-thinkorswim.2732/post-38894
Once you know certain points, to draw, you can extrapolate them.
I am looking at some of your recent posts. I am going to guess that you really don't need to draw them, but rather detect slopes.
my idea was to plot slope for lines from previous close to the next candle variables in order to extrapolate the next candle from statistics. thanks for the line drawing
 

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
311 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