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;
 
 }
示例#3
0
 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)
        {
        }
示例#8
0
 // Default Constructor
 public ATRStopLoss(BaseStrategy strategy, int atrPeriods, int atrShift) : base(strategy)
 {
     this.atrPeriods = atrPeriods;
     this.atrShift = atrShift;
 }
示例#9
0
 // Default Constructor
 public SRStopLoss(BaseStrategy strategy) : base (strategy)
 {
 }
 public FixedLotsRiskProfile(BaseStrategy strategy, double lots) : base(strategy)
 {
     this.lots = lots;
 }
示例#11
0
 public BreakEvenStopLoss(BaseStrategy strategy, int stopPips, double commisionPips) : base(strategy)
 {
     this.stopPips = stopPips;
     this.commisionPips = commisionPips;
 }
示例#12
0
 public BreakEvenStopLoss(BaseStrategy strategy) : base(strategy)
 {
 }
示例#13
0
        /**
         *
         * @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;
        }
示例#14
0
        public MACross(BaseStrategy strategy) : base(strategy)
        {

        }