I'm now interested in adding the ability to scale out partial positions via FILE API. Algo gets me in via API but I monitor positions for optimum exits.
This works to scale out if I already know the exact strategy ID assigned at entry.
Entry: PLACE;<ACCT-REDACTED>;NQ 09-24;SELL;3;MARKET;;;GTC;;;NQ-22;My-ATM-STRAGETY-ID
Scale Out: PLACE;<ACCT-REDACTED>;NQ 09-24;BUY;1;MARKET;;;GTC;;;;My-ATM-STRAGETY-ID
I occasionally enter multiple concurrent longs/shorts so I can't bake a static strategy ID into my entries. So i need to let Ninja assign unique ids for strategy-id.
But there's no way to know via file api what they are named for open positions so I can target them in partial closes.
If you were to add ATM Strategy position info similar to the general position info.txt I could do that.
My locations for taking partials are different per trade. So can't bake a static number of ticks into TARGET1 in the ATM Strategy itself.
Thanks.

Comment