Pretty easily Boris.

Quote:

if(A && B && NumOpenLong == 0)
enterLong();
else if(C && D && NumOpenShort == 0)
enterShort();