Inverse contracts #414
Unanswered
alenpavlovich
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Isn't this just a mathematical inverse, i.e.: inverse_ohlc_df = -1 / df
bt = Backtest(inverse_ohlc_df, ...) |
Beta Was this translation helpful? Give feedback.
9 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.
-
Hi team,
How complicated would be to add inverse contracts in the backtesting library? PnL in this case is calculated differently.
Long position Profit & Loss = Contract Value x (1/Entry Price - 1/Exit Price)
More details:
https://help.bybit.com/hc/en-us/articles/360039261054-What-is-Inverse-Contract-
PS. I am not associated with Bybit in any way, just for reference.
Beta Was this translation helpful? Give feedback.
All reactions