Example #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));
         }
     }
 }
Example #2
0
 public void SimOpen(RE.NewBarInfo info)
 {
     innerBroker.SimOpen(info);
 }
Example #3
0
 public void SimClose(RE.NewBarInfo info)
 {
     innerBroker.SimBar(info);
 }
Example #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);
 }