Back to Community
How to set not to buy past a certain leverage?

program not to buy if leverage is 1 or more

1 response

Hello Charles,
The way I work around this is if I am using order_target_percent(security, weight), I usually set my weight between 0.95 and 0.97. This permits for a movement in price without using all of my cash.
Hope that helps.