I tried to extract it from the manual but it is not clear to me, could not identify which argument of strategy.entry()
is the leverage.
strategy.entry(id, direction, qty, limit, stop, oca_name, oca_type, comment, when, alert_message) → void
For the balance portion amount, perhaps I can always calculate it so it can be handled. strategy.position_size
? Is this the right approach? And the right function?
And How to specify leverage and portion-of-account-balance in strategy('s code)?
I see that in the strategy settings panel, the amount can specified but what part of the code does this? O' the contrary, I don't see a leverage on this panel.
Here's Currency.com's Order Panel I established my approach on.