public override void Initialise(StockSerie stockSerie, StockOrder lastBuyOrder, bool supportShortSelling) { base.Initialise(stockSerie, lastBuyOrder, supportShortSelling); this.SRTrailStop = stockSerie.GetTrailStop(trailName); this.adxDecorator = stockSerie.GetDecorator("DIV(1)", ((IStockIndicator)TriggerIndicator).Name); }
public override void Initialise(StockSerie stockSerie, StockOrder lastBuyOrder, bool supportShortSelling) { base.Initialise(stockSerie, lastBuyOrder, supportShortSelling); this.oscSerie = null; this.trailStop = StockTrailStopManager.CreateTrailStop("TRAILHL(3)"); this.trailStop.ApplyTo(stockSerie); }
public _TrailHLHigherLowStrategy2() { this.TriggerIndicator = StockIndicatorManager.CreateIndicator("TRAILHLSR(3)"); SRIndicator = (IStockIndicator)this.TriggerIndicator; this.SRTrailStop = StockTrailStopManager.CreateTrailStop("TRAILHL2(35)"); resistanceEventIndex = SRIndicator.EventNames.ToList().IndexOf("ResistanceDetected"); supportEventIndex = SRIndicator.EventNames.ToList().IndexOf("SupportDetected"); lowerHightEventIndex = SRIndicator.EventNames.ToList().IndexOf("LowerHigh"); higherLowEventIndex = SRIndicator.EventNames.ToList().IndexOf("HigherLow"); upTrendEventIndex = SRTrailStop.EventNames.ToList().IndexOf("UpTrend"); }
public _ADXStrategy() { this.TriggerIndicator = StockIndicatorManager.CreateIndicator(triggerName); adxIndicator = (IStockIndicator)this.TriggerIndicator; this.adxDecorator = StockDecoratorManager.CreateDecorator("DIV(1)", triggerName); exhaustionSellIndex = adxDecorator.EventNames.ToList().IndexOf("ExhaustionBottom"); this.SRTrailStop = StockTrailStopManager.CreateTrailStop(trailName); upTrendIndex = SRTrailStop.EventNames.ToList().IndexOf("UpTrend"); downTrendIndex = SRTrailStop.EventNames.ToList().IndexOf("DownTrend"); brokenUpEventIndex = SRTrailStop.EventNames.ToList().IndexOf("BrokenUp"); brokenDownEventIndex = SRTrailStop.EventNames.ToList().IndexOf("BrokenDown"); }
public TrailStopsNode(string name, ContextMenuStrip menuStrip, IStockTrailStop stockTrailStop) : base(name, NodeType.TrailStops, menuStrip, (IStockViewableSeries)stockTrailStop) { this.ImageKey = "Trail"; this.SelectedImageKey = "Trail"; }
public TrailHLStrategy() { this.TriggerIndicator = StockTrailStopManager.CreateTrailStop("TRAILHL(3)"); trailStop = (IStockTrailStop)this.TriggerIndicator; movingAverage = (IStockIndicator)StockIndicatorManager.CreateIndicator("HMA(100)"); }
public TrailVolStrategy() { this.TriggerIndicator = StockTrailStopManager.CreateTrailStop("TRAILVOL()"); trailStop = (IStockTrailStop)this.TriggerIndicator; }
public TrailBBStrategy() { this.TriggerIndicator = StockTrailStopManager.CreateTrailStop("TRAILBB(11,2,-2)"); trailStop = (IStockTrailStop)this.TriggerIndicator; }