private static string GetLogMessageDatePart(BaseStrategy strategy)
 {
     string datePart = string.Format("[{0:dd-MMM-yyyy hh:mm:ss.fff tt}]", strategy.GetCurrentDateTime());
     return datePart;
 }
示例#2
0
 public virtual string GetEntrySignalName(BaseStrategy strategy)
 {
     return string.Format("{0}{1}.{2}.{3}.{4}.{5}", GetLegNamePrefix(),
         Index,
         strategy.ProjectName,
         strategy.GetCurrentDateTime().ToString("ddMMM.HHmmss"),
         this.OrderSide.ToString().ToUpper(),
         this.Instrument.Symbol);
 }