how to backtest future #3192
Unanswered
zhangteng0606
asked this question in
Q&A
Replies: 1 comment
-
|
@zhangteng0606 Binance perpetuals are not handled differently from any other derivative instrument in Nautilus. For backtesting you just need to Define the instrument (e.g.,
example order = MarketOrder(
instrument_id="ETHUSDT-PERP",
quantity=1,
position_id="long", # or "short"
)
ctx.submit_order(order)Once the instrument and data are loaded, there is no difference between backtesting and live trading from the strategy’s perspective. If this was helpful, please mark this as answer. Happy Trading! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've read through the documentation and cannot find a way for backtesting binance future, EHTUSDT-PERP for example. I know in live trading I can set position side using a position_id suffix when submitting an order, but how to do this in backtesting? Has anyone done something similar before, help please
Beta Was this translation helpful? Give feedback.
All reactions