示例#1
0
 public override void GotTick(Tick tick)
 {
     // check for spread break
     pairs.GotTick(tick);
     // check for return
     if (entrysignal && !pt[Asym].isFlat && !exitsignal)
     {
         if (pairs.Spread == 0)
         {
             exitsignal = true;
             D("pairs hit zero again, exiting trade.");
             shutdown();
         }
     }
 }
示例#2
0
 public void GotTick(Tick tick)
 {
     pairs.GotTick(tick);
 }