Try this:

MaxLong = MaxShort = 5; // don't open several trades