vectorbt
vectorbt copied to clipboard
How to set Leverage?
Trying to backtest on Forex, which is almost always traded on large leverage. Setting fees but without leverage makes the results useless.
Leverage currently supported only in the pro version. Community version doesn't have the required args, but you can always use the low level api of vectorbt to build your own simulation function.