Skip to content

Bar Replay

Step through historical bars one at a time.

Bar 0 / 0

Code

typescript
import { PluginReplay } from 'velo-plot/trading'

await chart.use(PluginReplay({ seriesId: 'ohlc', frameMs: 150 }))
const replay = chart.getPlugin('velo-plot-replay')
replay?.play(2)
replay?.step(1)
replay?.pause()

Released under the MIT License.