public LowestLowReceivedEstablishingEligibilityRange(ATRTrade aContext, MqlApi mql4) : base(mql4) { this.context = aContext; this.entryTime = mql4.Time[0]; this.rangeHigh = mql4.High[0]; this.rangeLow = mql4.Low[0]; this.barCounter = 0; this.buffer = aContext.getRangeBufferInMicroPips() / OrderManager.getPipConversionFactor(mql4); context.setTradeType(TradeType.LONG); //context.addLogEntry("Lowest Low found - establishing eligibility range. Lowest low: " + mql4.DoubleToString(mql4.Close[0], mql4.Digits), true); }
public HighestHighReceivedEstablishingEligibilityRange(ATRTrade aContext, MqlApi mql4) : base(mql4) { this.context = aContext; this.entryTime = mql4.Time[0]; this.rangeHigh = mql4.High[0]; this.rangeLow = mql4.Low[0]; this.barCounter = 0; this.buffer = aContext.getRangeBufferInMicroPips() / OrderManager.getPipConversionFactor(mql4); ///Works for 5 Digts pairs. Verify that calculation is valid for 3 Digits pairs context.setTradeType(TradeType.SHORT); //context.addLogEntry("Highest high found - establishing eligibility range. Highest high: " + mql4.DoubleToString(mql4.Close[0], mql4.Digits), true); }