ProRealCode - Trading & Coding with ProRealTime™
Great discussion, i’m also a RR subscriber but wanted something i could apply to individual stocks not covered in the RR. I’ve been using Buddy Carters algo [[60d ATR * 10d SMA of Actual Daily Range as a % of 60d ATR]] but that always results in a Range which is always evenly split. I’ve been trying to work on getting the x% upside x% percent downside ranges that Keith produces.
That question was great yesterday and had me googling Hurst Exponents and that’s how i found this forum, i was hoping he might be using something similar to Buddy’s formula as volatility metric and using Hurst result to skew the range higher or lower depending on the trend strength.
Hi guys and thanks for the continued discourse!
You beat me to it. I think Daryl raised his eyes at the ‘newbie’ question concerning the IVOL/RVOL discounts and premiums, but I’m glad that it was asked as it lead to further clues with the Risk Range. I noted Hurst Coefficient and Hurst Component. When I Googled these I came up with various links showing the Hurst fractal math can be applied to time series. Bingo. Then it got a little deep for my coding and mathematical ability! Of note was that Hurst close to 0.5 was a Brownian (ie random). Hurst 0-0.5 was indicative of a time series subject to ‘mean reversion’. Of note, I found a few articles where Hedge Fund / CTA algos had been using the Hurst <0.5 for pairs trading, hoping to find pairs trades about to mean revert. That leaves a Hurst >0.5 to 1 (can never be greater than 1) that indicates a time-series that is ‘trending’
Regarding the volume, I still don’t see how these tie into the RR, other than Keith’s slides from the Macro Show each day that show the previous day’s volume compared to 1 day, 1 month and 3 months. When we have a large up day but on low volume (relative to previous day) it often shows a move that is losing strength.
This site is quite useful for a Hurst explanation.
I can’t work out if the RR changes due to the trend – or if the values are always the same, it’s just Keith changes the top and bottom of the ranges to sell/buy depending on his trend? Let’s see if we can collectively dig deeper using the knowledge we have shared here, by asking pertinent questions on the Macro Show this week!!
I forgot to add this week, that Keith mentioned that the bottom of the risk range in SPX was a direct function of the VIX that day. So SPX 2782 was tied to Vix 42.32 (high of its RR)
“Donchian channel” is a classic “moving monkey” indicator 🙂 Its pretty basic, in the sense that it provides you with an upper band and a lower band. I played with different inputs and I finally got something that produces close to what Keith provides. Keith’s way of creating risk ranges is definitely superior imho, besides, he attempts to predict today’s range from yesterday’s numbers…. DC indicator lets us start with a basic risk range. But at the low end of the range and sell at the high… we can apply fractal math on this and improve it. Eitherway, the DC indicator with an appropriate length is within 1-2% of keith’s numbers (except for very high IV situations). This accuracy is ok with me for most equities trading that don’t involve leverage. Try it out and see if you can customize/improve it for your style of trading.
hope this helps.
This is an interesting paper that I came across while looking into Rescaled Range Analysis and the Hurst Exponent. I don’t necessarily think this is a good trading strategy, but was educational about how the Hurst Exponent can be used practically. The authors used a Hurst Fast Exponent (16 days) minus a Hurst Slow Exponent (32 days) to generate buy and sell signals when it crossed 0 (rising=buy / falling=sell). I thought this paper would add to the conversation. I also wonder if something like this could be used to confirm a bullish/bearish trends.
https://www.scitepress.org/Papers/2018/66670/66670.pdf
Hi guys – RTA and RR subscriber as well. I agree that volume probably does not play as much a part in this as most people think. For example, the FXY alert had very low volume until the RTA went out then voume spiked. I think algo’s are keen to his alert’s and trade around him pretty quickly. Just my 2 cents and glad to add where I can. Thanks for the discussion
@p2 After looking into Donchian Channels, really disappointed that I missed this. When playing with the numbers a couple weeks back I apparently made the start of a Donchian channel despite not knowing what it was, but I thought the numbers were a fluke, figured it couldn’t be that simple and didn’t keep digging into it. But I think Donchian Channel is the clear starting point, and then, like you said @p2, maybe he somehow uses the Hurst exponent to adjust the channel.
I just ran the numbers on the S&P comparing Keith’s numbers to a 16 day Donchian Channel (3 weeks in trading days), and the numbers are pretty close. Keith’s numbers are better, but definitely not by that much. I’m attaching a screenshot of some of the stats I ran comparing DC to Keith. The closing S&P price fell within Keith’s range 81.33% of the time, and within the Donchian Channel’s range… wait for it… 76% of the time. When Keith was wrong, he was wrong by an average of 35.7 points, and when Donchian was wrong, it was wrong by an average of 46.3 points, so Keith will save you by about 10 points on the S&P give or take.
Thanks for introducing me to the DC indicator @p2, definitely a breakthrough I think.
Where Keith’s numbers are superior to DCs is in big moves. Donchian channels can be slow to adjust to big moves up or down. Check out this graph and see how Keith’s numbers adjusted quickly to the market tanking in Feb/March, while the upper range Donchian channel was slow to adjust. I imagine that could be problematic on its own.
Thanks Guys. What DC are you using? The PRT supplied one and with what settings?
John. Nice analysis and graph. Promising. I see what you mean about the band width. Keith’s is more sensitive to changes. He mentioned today that the oil risk range has diverged as a function of OVX going from 115 to 85 today. I attended the RR call this week too and he was able to give instant RR on any stocks asked in the queue. I wonder if the Vola used in individual stocks is taken from the options market? The IVOL/RVOL function from put call strikes could be worth exploring.
Hey guys. John, are you only using the DC in your excel?
Daryl today was avoiding the Hurst question, so Keith is probably using it to adjust the RR levels. I’m also trying to understand what correlation does Keith use between VIX and SPX, do you guys have any idea?
Carlos yes I saw that Q in the queue and upvoted it. I presumed it was from John on the forum here!!
Looking at the DC it’s the same formula that Carver (ex AHL Hedge Fund PM) uses in his ‘breakout’ indicator. He takes it further using a ‘scaled price’ to ascertain trend.
If midline or average from DC is used it’s simply (price minus average) /( HHn minus LLn ). We know Keith and machines use 30 days but he alluded to sometimes using 60 day Vola a few weeks ago.
We know the low of SPX RR is a function of the high in the Vix RR so there must be a simple input here. Getting VIX data into PRT would be hard, only manually each day I guess?
(hover your mouse over your profile pic in top right corner of current page, a menu appears, select “settings” and then “location”, thank you)
RIsk Ranges
This topic contains 116 replies,
has 35 voices, and was last updated by PepeCamaleon
5 days, 9 hours ago.
| Forum: | ProBuilder: Indicators & Custom Tools |
| Language: | English |
| Started: | 09/19/2019 |
| Status: | Active |
| Attachments: | 27 files |
The information collected on this form is stored in a computer file by ProRealCode to create and access your ProRealCode profile. This data is kept in a secure database for the duration of the member's membership. They will be kept as long as you use our services and will be automatically deleted after 3 years of inactivity. Your personal data is used to create your private profile on ProRealCode. This data is maintained by SAS ProRealCode, 407 rue Freycinet, 59151 Arleux, France. If you subscribe to our newsletters, your email address is provided to our service provider "MailChimp" located in the United States, with whom we have signed a confidentiality agreement. This company is also compliant with the EU/Swiss Privacy Shield, and the GDPR. For any request for correction or deletion concerning your data, you can directly contact the ProRealCode team by email at privacy@prorealcode.com If you would like to lodge a complaint regarding the use of your personal data, you can contact your data protection supervisory authority.