Stock.Indicators icon indicating copy to clipboard operation
Stock.Indicators copied to clipboard

add TTM Squeeze

Open sshquack opened this issue 3 years ago • 5 comments

sshquack avatar Dec 25 '22 06:12 sshquack

I've had this one in the backlog for a while. Thanks for the extra info.

DaveSkender avatar Dec 25 '22 06:12 DaveSkender

@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 avatar Dec 25 '22 06:12 sshquack

@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 avatar Dec 30 '22 16:12 Marcusbaker1

@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 😊

sshquack avatar Dec 30 '22 18:12 sshquack

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.

DaveSkender avatar Dec 30 '22 18:12 DaveSkender