PulseIndex is the internal timing mechanism of the Pulse backtester that synchronizes all components to the current runtime datetime. While you typically won’t need to interact with it directly (since the Strategy class handles this automatically), understanding its functionality is valuable for advanced backtesting scenarios.
PulseIndex, provide an array of datetime objects that define the execution timeline for your backtest. The simulation will run exclusively on these specified timestamps, ensuring precise control over the backtesting schedule.
Output
pulse_index.index and retrieve the active datetime with pulse_index.last_pulse. These properties provide real-time state information during backtest execution.
Output
Strategy class, but the underlying mechanism uses pulse_index.pulse() to advance to the next datetime. This method increments the index position and updates the pulse state accordingly.
Output
pulse_index.append(datetime) method. This functionality is used internally when updating existing backtests with new settlement data or extending the analysis period.
Output
Output

