public PnLStopLossSettings(PnLStopLossSettings pnLStopLossSettings)
 {
     Id        = Guid.NewGuid().ToString();
     Interval  = pnLStopLossSettings.Interval;
     Threshold = pnLStopLossSettings.Threshold;
     Markup    = pnLStopLossSettings.Markup;
 }
Beispiel #2
0
 public PnLStopLossEngine(PnLStopLossSettings pnLStopLossSettings)
 {
     Interval              = pnLStopLossSettings.Interval;
     Threshold             = pnLStopLossSettings.Threshold;
     Markup                = pnLStopLossSettings.Markup;
     PnLStopLossSettingsId = null;
     TotalNegativePnL      = 0;
     StartTime             = null;
     LastTime              = null;
     Mode = PnLStopLossEngineMode.Idle;
 }