How do we access indicator values after a backtest? #335
-
Hello, I looked through the docs/API reference and couldn't find anything that indicated the values are returned. For now, I've been saving the values to a list and returning it with the strategy. Since the engine already has those values, I assumed they'd be accessible. Thanks! Example I've been working with: https://github.com/nautechsystems/nautilus_trader/blob/master/examples/backtest/fx_ema_cross_audusd_ticks.py |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there, The platform makes no assumptions as to how an indicator may be used. However to support indicator based trading the platform provides:
Beyond this, the usage of the indicator is left to the individual user. Some users may construct a feature set and pass these to a model, others may make decisions based directly on the value, or use it as an input to an algo, some may log the output vale each time the indicator calculates, and indeed some may also choose to store all of the outputs (etc etc). So your current approach is roughly one of the intended use cases. So that I could assist further, what was the intended use for the indicator values? |
Beta Was this translation helpful? Give feedback.
Hi there,
The platform makes no assumptions as to how an indicator may be used. However to support indicator based trading the platform provides:
Indicator
base class along with reference implementations for common indicators.TradingStrategy
to receive various market data types.Beyond this, the usage of the indicator is left to the individual user. Some users may construct…