Arc Breakout Entry - Indicator Coding Request

ArcRider

New member
VIP
Anyone like to try and code this?

See Picture for better visual idea of how it would work / look like.

This indicator strategy would find when one arc ends and a new one begins. Entry on a new arc for very safe entry.
(I jokingly call it the "pot of gold" at the end of the rainbow, because it's such a low risk entry.) 💰🌈
  • Things to know about arcs before I explain the indicator function:
    • Quadratic Arc behavior:
      • Markets move in waves, contained within Quadratic Arc curves. Arcs can be symmetrical, from a middle point called the point of inflection. So, front half mirror the back half.
      • If given only the front side data, with assumption of the most current point being the current point of inflection, you can assume the back side of the curve as a predictor.
  • Ideas on how to write an arc using math: https://www.quora.com/How-do-I-find-the-maximum-minimum-and-point-of-inflection-of-the-function-f-x-2x²-6x+5
  • Progression of arc as a sequence of conditional events:
    • Arc would start on a breakout candle. Entry Here, with risk down to last lowest low
    • Arc curve is drawn from last valley low before the breakout. use the quadratic arc formula to draw the arc using at least 3 points. Would be helpful to project the curve into the future, as a predictor if you know how to code that.
    • YES, the arc WILL repaint by adding in new high peaks. These are shown as green points.
    • The most current peak would be considered the magenta inflection point until there are no more high peaks... This is the current middle high of the arc shape
    • which then display as red point indicator conditions. (time to get out of the uptrend arc.)
    • Arc ends when new arc breakout begins.
  • Problems I see will come up when trying to explain this in computer code:
    • How to filter only the bigger highs, and not the smaller. This could turn into a fractal problem, and you would see arcs within arcs. We only want the larger arc shape. Later we could add a feature to select the arc size or detail, but I'm just trying to narrow down to the minimum viable product right now.
Screen Shot 2023-11-12 at 12.09.16 PM.png
 
Last edited by a moderator:
Anyone like to try and code this?

See Picture for better visual idea of how it would work / look like.

This indicator strategy would find when one arc ends and a new one begins. Entry on a new arc for very safe entry.
(I jokingly call it the "pot of gold" at the end of the rainbow, because it's such a low risk entry.) 💰🌈
  • Things to know about arcs before I explain the indicator function:
    • Quadratic Arc behavior:
      • Markets move in waves, contained within Quadratic Arc curves. Arcs can be symmetrical, from a middle point called the point of inflection. So, front half mirror the back half.
      • If given only the front side data, with assumption of the most current point being the current point of inflection, you can assume the back side of the curve as a predictor.
  • How I think it would be coded???
  • Progression of arc as a sequence of conditional events:
    • Arc would start on a breakout candle. Entry Here, with risk down to last lowest low
    • Arc curve is drawn from last valley low before the breakout. use the quadratic arc formula to draw the arc using at least 3 points. Would be helpful to project the curve into the future, as a predictor if you know how to code that.
    • YES, the arc WILL repaint by adding in new high peaks. These are shown as green points.
    • The most current peak would be considered the magenta inflection point until there are no more high peaks... This is the current middle high of the arc shape
    • which then display as red point indicator conditions. (time to get out of the uptrend arc.)
    • Arc ends when new arc breakout begins.
  • Problems I see will come up when trying to explain this in computer code:
    • How to filter only the bigger highs, and not the smaller. This could turn into a fractal problem, and you would see arcs within arcs. We only want the larger arc shape. Later we could add a feature to select the arc size or detail, but I'm just trying to narrow down to the minimum viable product right now.


here is a post with some polynomial studies. one of them could be a starting point.
https://usethinkscript.com/threads/polynomial-regression-channel-prc-quadratic-regression.1491/

this is interesting, but complicated.
let's look at your image and determine what a study would be looking for and what is needed.
it doesn't matter what shape the arc is. an arc may not even be needed.
it appears, that it is looking for reversals. when does price change direction.

here is a simple interpretation of your idea.
i drew a red line across 2 peaks and extended it to the right. when price crosses above it, price has probably reversed.
X9tCzQZ.jpg


outline,
find peaks
calc the slope between 2 peaks (a left and a right peak)
draw a line from right peak, using the previous slope
check if price crosses the line
 
here is a post with some polynomial studies. one of them could be a starting point.
https://usethinkscript.com/threads/polynomial-regression-channel-prc-quadratic-regression.1491/

this is interesting, but complicated.
let's look at your image and determine what a study would be looking for and what is needed.
it doesn't matter what shape the arc is. an arc may not even be needed.
it appears, that it is looking for reversals. when does price change direction.

here is a simple interpretation of your idea.
i drew a red line across 2 peaks and extended it to the right. when price crosses above it, price has probably reversed.
X9tCzQZ.jpg


outline,
find peaks
calc the slope between 2 peaks (a left and a right peak)
draw a line from right peak, using the previous slope
check if price crosses the line

Thanks for the reply!

Yes I’ve tried poly nominal regression indicators before but I didn’t know how to set them up into a useable strategy. I bought the one from fun with think script a couple years ago and it kept changing as the market moved. Maybe my settings were not correct for the scale I was looking at.

Yes down sloping trend lines based on the last highs do work for finding arc breakouts. I personally do this manually right now. There are 3 types of trend lines I draw:

1 from highest arc peak to next highest but lower peak going forward. This is the “arc line” and it tells me I won’t be able to hold an uptrend for a while until price crosses this line and stays above.

1 from last peak mentioned to next highest but lower peak. This trend lines is angled more down and is inside the arc line. I call this the “wave line”. It tells me if there is a dead cat bounce, price will come back up to this line and continue down. The line is still a decision area where price could breakout or fall down further.

1 from last peak mentioned down to tops of candles creating a steep slope channel of candles. This is my “leg line”. Where candles shoot down in a momentous run. Any break above this line alerts me of the end of a fast down trend of proceeding candles. Also reminds me that I still have to wait for price to break the other two lines before any real uptrend can occur.

So essentially I’m finding the valley when one. Arc back side ends.

See example picture
 

Attachments

  • 5A308859-4FC8-4CFF-8AB1-DC754511ACA7.jpeg
    5A308859-4FC8-4CFF-8AB1-DC754511ACA7.jpeg
    740.2 KB · Views: 117
ArcRider - did you ever have any success with coding these ideas. I am very interested to follow anything you have found.

Did you know that by clicking on a member's name, you can easily check when they were last seen on the uTS forum? It's a great way to keep track of who's been around recently, and who hasn't. Speaking of which, it looks like @ArcRider has not been active in a while. :(
 
It appears to me that a Simple HH, HL, LH and LL script will achieve the same thing. The big issue I see here is that it is just a guess. You will need to have a stop loss just under the last LL or LH and you may have a ton of losses. I do not see a good risk to reward for this because the price may just turn and go down just after each of your red dots resulting in losses.
1714228747970.png
 
It appears to me that a Simple HH, HL, LH and LL script will achieve the same thing. The big issue I see here is that it is just a guess. You will need to have a stop loss just under the last LL or LH and you may have a ton of losses. I do not see a good risk to reward for this because the price may just turn and go down just after each of your red dots resulting in losses.

Yes, you are correct. Polynomial studies do repaint. Your warnings are apt for all repainters.

However, you are incorrect that polynomials are comparable to a Simple HH, HL, LH and LL script.
Polynomial studies are some of the most complex and interesting on the forum.
They are used in estimating price trends and support and resistance levels.
Polynomial strategies are the fastest heads up to capitalize on momentum and warn of possible trend reversals.

No, never use repainters as signals.
But members should google the fascinating world of polynomial analysis and whether it will bring value to their charts.

Read more here:
https://usethinkscript.com/threads/...-slope-qtl-for-thinkorswim.15137/#post-140932
 
Last edited:
Yes, you are correct. Polynomial studies do repaint. Your warnings are apt for all repainters.

However, you are incorrect that polynomials are comparable to a Simple HH, HL, LH and LL script.
Polynomial studies are some of the most complex and interesting on the forum.
They are used in estimating price trends and support and resistance levels.
Polynomial strategies are the fastest heads up to capitalize on momentum and warn of possible trend reversals.

No, never use repainters as signals.
But members should google the fascinating world of polynomial analysis and whether it will bring value to their charts.

Read more here:
https://usethinkscript.com/threads/...-slope-qtl-for-thinkorswim.15137/#post-140932
Maybe I wasn't clear enough with the comparison. I in no way meant the two are comparable. I meant the location at which a trade may be taken is pretty much the same so to me it is simpler to use the HH, HL , LH, LL method. Basically I see structure/trend change and that is what they both recognize. If there is a difference that I do not see, then please show it in a chart so we may visualize the difference and or importance of one over the other. In my review, I do not see where the "ARC" method finds a better entry than the other. I agree that if S/R levels are determined by the polynomial study, then that is a positive but S/R are easy to find anyway.
 

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