protected override void Create() { buyOrder = OrderCreator.MarketThisBar(new SOrderParameters(Contracts.UserSpecified, EOrderAction.Buy)); sellOrder = OrderCreator.MarketThisBar(new SOrderParameters(EOrderAction.Sell)); cutlersRSIIndicatorMathDown = new CutlersRSIIndicatorMath(this, 1); cutlersRSIIndicatorMathFlat = new CutlersRSIIndicatorMath(this, 1); cutlersRSIIndicatorMathUp = new CutlersRSIIndicatorMath(this, 1); xAverageLong = new XAverageThatWorks(this, 1); xAverageShort = new XAverageThatWorks(this, 1); }
public CutlersRSI(object _ctx) : base(_ctx) { cutlersRSIIndicatorMath = new CutlersRSIIndicatorMath(this); }