I am trying to keep track of the amount of contracts that were entered for the previous trade. I have the lastSize = quantity; implemented but it isn't working as expected due to partial fills. Because of the partial fills on the previous trade's exit, quantity is equal to 1.
Any suggestions on how i can correctly capture the amount of contracts in the last trade for lastSize?
Comment