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
930 stars 229 forks source link

stream through full chains #1096

Open DaveSkender opened 9 months ago

DaveSkender commented 9 months ago

Refactor chainable streaming mechanism to support more than current use of Quote or Use bases. The current form of observable management won't work.

DaveSkender commented 8 months ago

Steaming that process individual increments as a whole is innately slower than processing a static batch entirely alone. Streaming requires additional 10x overhead costs to manage quote and indicator history caches needed for handling each increment. For example, both of these are true:

In other words, streaming has a 90% more efficient steady state for handling new quote arrivals, but is 10x slower when processing batches of quotes. As a result, the more proficient way to initialize an indicator data series is with a batch method, then turn on the streaming quote handler (e.g. do not emulate the stream to catch up the initial load).