Here’s a way to increment your autotrading trade size by 1 with each subsequent entry, to a certain maximum, then it resets to 1.
Put this in cell H1: 3This is the max number of trades that you want to take before returning to a 1 lot. Put this in cell H2: =1/H1Put this in cell J26: =IF(J8<>0,ABS(J8),((J52/H1)-INT(J52/H1))/H2+1)With J52 (Daily Total Trades) at 0, this will start at 1, then increment by 1 after each trade, then reset to 1 when J52 reaches another increment of H1. Limitations: -It can only increment the order quantity by 1. -It assumes you are all in/all out at each increment. -It assumes the value of H1 is the same for the entire day. |