Here's my simplified strategy code (wrapped for better readability):
strategy("Strategy Test",
overlay=true,
margin_long=0.2, // 500x leverage, if I'm right.
margin_short=0.2,
initial_capital = 1000,
default_qty_type = strategy.percent_of_equity,
default_qty_value = 50)
if shortCondition
strategy.entry("short", strategy.short)
The problem is, no matter how I modify those Leverage ratio parameters, the result of the backtesting is all the same.
How to make that leverage parameters applied to the positions the Strategy makes?