Exemplo n.º 1
0
 public void SimHighLow(RE.NewBarInfo info)
 {
     //innerBroker.SimHighLow(info);
     foreach (var s in info.bars.Keys)
     {
         var bar = info.bars[s];
         if (bar.Open - bar.Low <= bar.High - bar.Open)
         {
             tick(s, bar.Low, bar.PriceDateTime.AddMinutes(1));
             tick(s, bar.High, bar.PriceDateTime.AddMinutes(2));
         }
         else
         {
             tick(s, bar.High, bar.PriceDateTime.AddMinutes(1));
             tick(s, bar.Low, bar.PriceDateTime.AddMinutes(2));
         }
     }
 }
Exemplo n.º 2
0
 public void SimOpen(RE.NewBarInfo info)
 {
     innerBroker.SimOpen(info);
 }
Exemplo n.º 3
0
 public void SimClose(RE.NewBarInfo info)
 {
     innerBroker.SimBar(info);
 }
Exemplo n.º 4
0
 public void SimBar(RE.NewBarInfo info)
 {
     // I think this should call SimClose, but I don't have a good test without TradeInsideBars set.
     innerBroker.SimBar(info);
 }