I did a simple replication of your sheet and it works for me for the third row too.I used the following formula:
=IF(ISBLANK(E5)=TRUE,0,IF(F5="Open",IF(I5<1000,$E$19,$E$20),(IF(I5<1000,$E$19,$E$20)+IF(G5*L5<1000,$E$19,$E$20))))
It works fine if the buying price exceeds $1000.
Cheers CC