I want to know how to make a trade increase its lot quantity based on current position size, and add one lot to every next trade.
Example:
1st trade: short 1 contract. total position size: 1 contract
2nd trade: short 2 contracts. total position size: 3 contracts.
3rd trade: short 4 contracts. total position size 7 contracts.
So every next trade, I want to increase size by 1 contract, based on total position size.
I unlocked the code and I tried doing what I'm showing in the attached picture, but that just seemed to break the whole strategy. How can I implement this?
Comment