Renko

Renko Paper Bot in Python

Replay a growing CSV, save a trade log and resume the same simulation.

Start and resume

The bot reads a growing chronological timestamp,bid,ask CSV. The next observed bid or ask determines simulated execution. SQLite stores a hash of the processed prefix, the parameters and the event log. Resume with the same input and settings. The log receives no duplicate events. Use a new database for new settings or a new source.

renko_paper_replay.py · renko_lab.py · Synthetic quote CSV

python renko_paper_replay.py renko-demo-quotes.csv --size 60 --fast 3 --slow 6
python renko_paper_replay.py renko-demo-quotes.csv --size 60 --fast 3 --slow 6 --watch-seconds 10

The second command checks the same file every ten seconds. A separate data process appends complete rows. The bot replays the file to reconstruct state on every run. It never submits broker orders.

More in the Renko section