Price Convexity/Concavity
Forums › ProRealTime English forum › ProBuilder support › Price Convexity/Concavity
- This topic has 8 replies, 4 voices, and was last updated 5 years ago by Alf639.
-
-
11/02/2017 at 5:52 AM #51261
What indicator or code do you use to determine the convexity/concavity of the price? I know MACD and Momentum can show this to a degree but they are not reliable when the price change slows after a sharp move.
Maybe comparing the current close with the previous n bars and using a formula to filter out the random jumps and dips? Or maybe there is an indicator for this?
11/03/2017 at 4:00 PM #51433You are trying to find highest high and lowest low? In this case, we always need confirmation before considering these price levels, to be sure that the new detected highest high is effectively a new top and vice-versa. There are many different indicators already to find them: zigzag, fractals, donchian channels, etc.
10/28/2019 at 3:39 PM #111436I’m also interested in a price convexity/concavity indicator. Mathematically speaking, it’s a regression of prices (or variations of price) on time square for n periods. In other words, we have y = ax + b with y = price or variations of price and x the square of time (1 ; 2 ; 3 ; … ; n). The sign of a is the indicator of concavity or convexity. If someone can explain how to program this…
10/28/2019 at 5:42 PM #11144710/30/2019 at 7:28 PM #11170210/30/2019 at 7:46 PM #11170311/04/2019 at 11:33 AM #112024With a few days delay, some complementary elements: a function is convex if its second derivative is positive. To obtain a second derivative in the form y = b, we need an approximation function that is quadratic (y = ax² + bx + c with x = t in the case of a time serie analysis) and not y = ax + b as i indicated earlier. It is therefore necessary to estimate on n periods (the only parameter of this possible indicator) using error minimization a; b and c, the parameters of the quadratic function. If “a” is positive, it will also be positive in the second derivative and the price curve estimation will be convex, otherwise (a < 0), the curve will be concave. A change in sign of a can be seen as a trading signal to enter/exit a trading position.
Of course, using a regression function has nothing to do with finding high or low points. It’s a momentum indicator…
11/04/2019 at 11:39 AM #112025You can find a quadratic regression function here: Quadratic regression
Made a semaphore (tops/bottoms) indicator from it: Quadratic Semaphore
A quadratic regression is the process of finding the equation of the parabola that best fits a set of data.
11/29/2019 at 11:30 AM #113908A quadratic regression is the process of finding the equation of the parabola that best fits a set of data.
Exactly.
Thanks for your quadratic regression program (i suppose you’ve used gradient to estimate the parameters). Information is welcome.
-
AuthorPosts
Find exclusive trading pro-tools on