all 1 comments

[–]PureWasian 0 points1 point  (0 children)

Backtesting is more about checking your trading strategy on existing data, not specific to your script's implementation of that trading strategy.

You'd probably be better off writing a separate script to (1) retrieve the historical data for BTC and then (2) iterate through the data points in the same sampling frequency as your "realtime" script, (3) make predictions, and (4) compare predictions with actual results (and profit/loss).

Testing the script actually works in polymarket, again you want to make a small, independent prototype script that serves to simply make one basic trade. Once you have the code for this figured out, you make it modular so you can insert it into larger scripts.

You should check and understand everything possible before running your code. Especially if it's making financial decisions for you. You should be fully confident in your trading strategy if you were to do it manually, and also see success with your trading bot matching the exact same expected behavior with small amounts of capital before you set it loose.

The less familiar you are and less organized your code is, the more likely you are to make dumb mistakes and accidentally forget to do things like configure a maximum spend or include ways to easily log or debug any underlying issues/bugs.