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); }
protected override void Create() { // create variable objects, function objects, order objects etc. buy_order = OrderCreator.MarketNextBar(new SOrderParameters(Contracts.Default, EOrderAction.Buy)); x = new XAverageThatWorks(this); }