Leverage should ideally be volatility dependent, which is time frame dependent.
So the key inputs to determine leverage are:
1) maximum capital at risk
2) volatility measure
Here's an example (assuming only trading 1 position at a time):
. risking maximum 1% of account per trade
. $100k...