function run() { if(CDLAdvanceBlock() > 0) enterLong(); else if(CDLAdvanceBlock() < 0) enterShort(); }