Open sshquack opened 1 year ago
I've had this one in the backlog for a while. Thanks for the extra info.
@DaveSkender Forgot to add my context. I've been using the TTM Squeeze for options trading and it's a helpful too in the toolbox!
Also I noticed that the Trading view code uses the Linear regression function for the histogram and looks like TV just uses the least squares method. I noticed you already have the least squares implementation in the Slope.series.cs
@sshquack Thank you for posting this! I read through it and used it on 2 options entries, works quite well! I nailed both trades.
Will be exciting if it makes it into the indicators library.
@Marcusbaker1 Glad it helped! It was created mainly by an options trader (Joh carter) and works well for options. Also it is THE most popular indicator of all time on TradingView with 87k installs. So I'm looking forward to this getting incorporated into stock-indicators for algos trading too 😊
This or #979 are good ones to contribute if anyone is interested. They're potentially less complex than others.
As an intermediate workaround, since the underlying indicators are already available here for TTM Squeeze, you may also be able to get this working in your wrapper code by just calling the three prerequisites and adding a bit of logic between them.
Rough pseudo-code of the algo