I want to increase my position size from 1 to 2 after 2 losses only.. .if the 3rd bet losses (the increased size one), it should then go back to normal bet size
I tried the code below, which works fine when there is 2 losses – the next bet has its position size increased – however when there are 3 or 4 losses in a row those are increased too.. then the next 2 wins are also increased.. why is this? I thought the “Positionperf(3)>=0” part would mean that if there are more than 2 losses in a row it would go back to original position size.