Skip to main content
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.
To initialize a 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
You can access the current position in the timeline using pulse_index.index and retrieve the active datetime with pulse_index.last_pulse. These properties provide real-time state information during backtest execution.
Output
Time progression through historical data is managed by the 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
You can extend the timeline dynamically using the 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
Last modified on November 4, 2026