I want to write a program where I build up a number of short positions say 5. (Sellshort)
When CountOfPosition = say 5 start buying them back.
Boolean variable BuybackMode = False during build up of short position
BuybackMode = True once CountOfPosition = 5 and stays True whilst positions bought back.
The issue I am having is that I can build up the sellshort positions according to criteria 1 through 5 ok.
The issue I am having although I specify Buy 1 Contract back at a time the first time the first buy criteria is met the whole
position, all 5 contracts are bought back.
So trades entered using Sellshort singlely 1 through 5
Plan to exit them singlely using Buy.
My question is of concept in the first instance.
“Is it possible to scale in and scale out of trades in PRT?”