Calculating and Plotting a Moving Average in VeighNa Backtests
Summary
A VeighNa community discussion asks how to display a five period average of bar lows on the strategy’s built in candlestick chart during a backtest. One reply shows how to calculate the current value from the strategy’s array manager, but the original poster clarifies that they need the value drawn on the chart, not merely calculated. Another participant points to a separate discussion about displaying custom indicators.
The exchange distinguishes computing an indicator value from making it visible in a chart, a useful practical consideration when reviewing backtests. It does not explain the plotting implementation itself, provide a complete example, or show a chart. Readers seeking the actual display steps would need to consult the referenced discussion or VeighNa documentation; the thread alone offers only a calculation hint and a pointer to further information.
Key ideas
- A rolling average of recent bar lows can be calculated from the strategy’s array manager.
- Calculating an indicator value does not automatically display it on the backtest chart.
- The thread directs readers to a separate discussion for guidance on plotting custom indicators.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.