Drawing a Circle on the chart

sgbaum88

Member
I was wondering if there is a script for placing a circle between two points on the chart instead of using the ellipse tool? I find it very difficult to accurately do this with the drawing tool that TOS provides.
 
I was wondering if there is a script for placing a circle between two points on the chart instead of using the ellipse tool? I find it very difficult to accurately do this with the drawing tool that TOS provides.


EDIT - ADDED LINK
https://usethinkscript.com/threads/experimental-draw-an-oval-circle.11517/


just wanted to let you know, i have been experimenting with a study to draw a circle.
as this is a fun math experiment, and not really useful for trading, it's low on my priority list.
it may be a week or 2 or ? before i finish it.

the user enters 2 dates and times and it uses the close from the 2 times and draws a circle through them.
with x an y having different units, there needs to be some sort of correction/scaling, to keep the 'circles' close to being round.

OCJvlcT.jpg
 
Last edited:

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

Thanks, Halcyonguy. I would like to a parabola drawing tool for head and shoulder patterns, cup with handles, saucers, etc. It sounds like you're the person to get it done.
 
Thanks, Halcyonguy. I would like to a parabola drawing tool for head and shoulder patterns, cup with handles, saucers, etc. It sounds like you're the person to get it done.

start with looking up some formulas.
https://www.cuemath.com/geometry/parabola/
https://www.radfordmathematics.com/...rm/vertex-form-finding-equation-parabola.html
experiment with them, and try to draw them starting from barnumber 1, barnumber as X , and calculate a price.

something to get you started

Code:
# parabola_ex01
# https://www.cuemath.com/geometry/parabola/
# y = a * (x - h)^2 + k
# https://www.radfordmathematics.com/functions/quadratic-functions-parabola/vertex-form/vertex-form-finding-equation-parabola.html

def bn = BarNumber();
def na = Double.NaN;

input parabola_vertex_barnum = 100;
input parabola_vertex_price = 50;

input a = 0.2;

def h = parabola_vertex_barnum;
def k = parabola_vertex_price;
def x =  bn - parabola_vertex_barnum;

def y = a * power(x - h, 2) + k;

plot z = y;


----------------------------

for cup and handle, look at this thread.
read the posts starting at #20. read the posts by robertpayne
https://usethinkscript.com/threads/cup-and-handle-indicator-for-thinkorswim.405/

he is a genius with thinkscript . his forum is another place i learned quite a bit about thinkscript. look for posts by robert.
https://researchtrade.com/forum/read.php?7,2258,page=19
 
Last edited:

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

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