public FixedDollarRiskProfile(BaseStrategy strategy, double dollarRisk, double maxLots) : base(strategy) { this.dollarRisk = dollarRisk; this.maxLots = maxLots; this.strategy = strategy; }
public PercentRiskProfile(BaseStrategy strategy, double cashAccountEquity, double percentRisk, double maxLots) : base(strategy) { this.cashAccountEquity = cashAccountEquity; this.percentRisk = percentRisk; this.maxLots = maxLots; this.strategy = strategy; }
public MACross(BaseStrategy strategy, int maPeriodFast, int maPeriodSlow, ENUM_MA_METHOD methodFast, ENUM_MA_METHOD methodSlow, int maShift) : this(strategy) { this.maPeriodFast = maPeriodFast; this.maPeriodSlow = maPeriodSlow; this.methodFast = methodFast; this.methodSlow = methodSlow; this.maShift = maShift; }
public NewsCloseOutFilter(BaseStrategy strategy, NewsReports newsReports) : base(strategy) { this.strategy = strategy; this.newsReports = newsReports; }
// Default Constructor public FixedPipTakeProfit(BaseStrategy strategy, double pips) : base(strategy) { this.pips = pips; }
public TrailingStopLoss(BaseStrategy strategy, int stopPips, int step) : base(strategy) { this.stopPips = stopPips; this.step = step; }
int step = 5; // move every x pips public TrailingStopLoss(BaseStrategy strategy) : base(strategy) { }
// Default Constructor public ATRStopLoss(BaseStrategy strategy, int atrPeriods, int atrShift) : base(strategy) { this.atrPeriods = atrPeriods; this.atrShift = atrShift; }
// Default Constructor public SRStopLoss(BaseStrategy strategy) : base (strategy) { }
public FixedLotsRiskProfile(BaseStrategy strategy, double lots) : base(strategy) { this.lots = lots; }
public BreakEvenStopLoss(BaseStrategy strategy, int stopPips, double commisionPips) : base(strategy) { this.stopPips = stopPips; this.commisionPips = commisionPips; }
public BreakEvenStopLoss(BaseStrategy strategy) : base(strategy) { }
/** * * @param strategy * @param timeStart : eg "07:30" * @param timeStop : eg "14:00" */ public TimeOfDayFilter(BaseStrategy strategy, LocalTime timeStart, LocalTime timeStop) : base(strategy) { this.strategy = strategy; this.timeStart = timeStart; this.timeStop = timeStop; }
public MACross(BaseStrategy strategy) : base(strategy) { }