public void RaiseResult(PolicyResultEventArgs args)
 {
     if (PolicyResult_Arrival != null)
     {
         PolicyResult_Arrival(this, args);
     }
 }
Пример #2
0
 public void RaiseResult(object policy, PolicyResultEventArgs args)
 {
     if (BackTestResult_Arrival != null)
     {
         BackTestResult_Arrival(policy, args);
     }
 }
Пример #3
0
 void stockMonitor_StockMonitor_ResultArrival(RunningPolicy policy, StockPolicies.PolicyResultEventArgs args)
 {
     if (!args.PairePoint.Closed)
     {
         policy.Notify(args.PairePoint.TradeGuid, OpenStatus.Opened, args.PairePoint.EnterPoint.OpenQty);
     }
     else
     {
         policy.Notify(args.PairePoint.TradeGuid, OpenStatus.Close, args.PairePoint.OutPoint.OpenQty, 0, "1234");
         policy.Notify(args.PairePoint.TradeGuid, OpenStatus.Closed, args.PairePoint.OutPoint.OpenQty, args.PairePoint.OutPoint.OpenPrice, "1234");
     }
     updateResult(args);
     Write(args);
     //updateResult(args);
     //Write(args);
 }