DaveSkender / Stock.Indicators

Stock Indicators for .NET is a C# NuGet package that transforms raw equity, commodity, forex, or cryptocurrency financial market price quotes into technical indicators and trading insights. You'll need this essential data in the investment tools that you're building for algorithmic trading, technical analysis, machine learning, or visual charting.
https://dotnet.StockIndicators.dev
Apache License 2.0
976 stars 246 forks source link

add TTM Squeeze #986

Open sshquack opened 1 year ago

sshquack commented 1 year ago
DaveSkender commented 1 year ago

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

sshquack commented 1 year ago

@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

Marcusbaker1 commented 1 year ago

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

sshquack commented 1 year ago

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

DaveSkender commented 1 year ago

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.