if (crossOver(DEMAShort, DEMALong)) exitLong(); enterLong(); if (crossUnder(DEMAShort, DEMALong)) exitShort(); enterShort();