i do it a bit another way, there is no other columns used for that purpose. this is what i have at my j26
=IF(OR($J$8=0,$J$10<=ABS($J$8)*$J$41),$J$45,$J$45/2)
where J41 is your bigest stop loss,
j45 is maximum # of contracts allowed for trading.
But who cares how do we cook our pancakes if...