-
Refering to this Issue @edtechre @Pirat83 whats the current recommendation for backtesting with leverage? I too would like to include some leverage in long and short positions - -and if I do this: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @SW4T400, The library does not support leverage, as different brokers have varying margin requirements. Implementing these requirements is beyond the scope of the library. Instead, the library focuses on its primary use case: identifying effective trading signals independent of leverage. If you wish to simulate trading with higher capital, you can set a larger |
Beta Was this translation helpful? Give feedback.
Hi @SW4T400,
The library does not support leverage, as different brokers have varying margin requirements. Implementing these requirements is beyond the scope of the library. Instead, the library focuses on its primary use case: identifying effective trading signals independent of leverage. If you wish to simulate trading with higher capital, you can set a larger
initial_cash
parameter.