Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 12:54:21 +0000



Post From: Request: option to reset quantity on position change

[2025-01-21 15:30:23]
joshtrader - Posts: 506
Would it be possible to add an option to:

1. Set quantity to X when flattening a position (going to Flat)
2. Set quantity to Y when entering a position (from Flat to the initial position size)
3. Set quantity to Z when position size reaches P

This would be a per-DOM/chart setting.
1 and 2 combine for a scaling out strategy. Go all in with a quantity X, and immediately scaling out with quantity Y.
1 and 3 combine for a scaling in strategy. Start small with quantity X, and when position size reaches P contracts/units, scale out with smaller increments of size Z.

I could try it in ACSIL if you can't add that feature. I've written a good bit of ACSIL but not for order execution, so any tips would be welcome, of course I can also read the docs and examples but maybe it's very easy.
Date Time Of Last Edit: 2025-01-21 15:33:23