PoorRican / tradr-rs

0 stars 0 forks source link

v0.5.0 #51

Closed PoorRican closed 2 months ago

PoorRican commented 2 months ago

v0.5.0

Massive changes to the way indicators are handled only using the CandleProcessor interface. This eliminates internal tracking of the graph and signals fields in the indicator instances. All signals from indicators are now immediately calculated and the signal is returned to the caller. This change allows for a more flexible way to handle complex indicators, and simplifies creating new indicators.

This means that every candle will be processed during backtesting, more closely resembling a live trading environment. The increase in processing time is negligible due to recalculating such a small window, and using polars (which is highly optimized) to calculate the indicator data.

These changes are necessary to implement the VWAP indicator, and eventually, other complex indicators such as time-series forecasting models.

Code Changes


Issues