Exemple #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();
         }
     }
 }
 public void GotTick(Tick tick)
 {
     pairs.GotTick(tick);
 }