public SARFilteredStrategy()
        {
            this.TriggerIndicator = StockIndicatorManager.CreateIndicator("SAR(.02,.2)");
             SAR = (IStockIndicator)this.TriggerIndicator;

             sarBrokenUpEventIndex = SAR.EventNames.ToList().IndexOf("SupportDetected");
             sarBrokenDownEventIndex = SAR.EventNames.ToList().IndexOf("ResistanceDetected");
        }
Example #2
0
        public BBStrategy()
        {
            this.TriggerIndicator = StockIndicatorManager.CreateIndicator("TRAILHLSR(9)");
             SRIndicator = (IStockIndicator)this.TriggerIndicator;

             bbBand = StockIndicatorManager.CreateIndicator("BB(100,1.75,-1.75)");

             supportEventIndex = SRIndicator.EventNames.ToList().IndexOf("SupportDetected");
             resistanceEventIndex = SRIndicator.EventNames.ToList().IndexOf("ResistanceDetected");
        }
        public _TrailHLHigherLowStrategy()
        {
            this.TriggerIndicator = StockIndicatorManager.CreateIndicator("TRAILHLSR(3)");
             SRIndicator = (IStockIndicator)this.TriggerIndicator;

             higherLowEventIndex = SRIndicator.EventNames.ToList().IndexOf("HigherLow");
             lowerHightEventIndex = SRIndicator.EventNames.ToList().IndexOf("LowerHigh");

             supportEventIndex = SRIndicator.EventNames.ToList().IndexOf("SupportDetected");
             resistanceEventIndex = SRIndicator.EventNames.ToList().IndexOf("ResistanceDetected");
        }
        public StockPaintBarIndicatorEventBase()
        {
            baseIndicator = StockIndicatorManager.CreateIndicator(this.ShortName);
             if (baseIndicator == null)
             {
            throw new System.ApplicationException("Unable to create " + this.ShortName + " indicator");
             }
             this.parameters = baseIndicator.ParameterDefaultValues;

             this.serieVisibility = new bool[this.SeriesCount];
             for (int i = 0; i < this.SeriesCount; this.serieVisibility[i++] = false) ;
        }
Example #5
0
        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 IndicatorNode(string name, ContextMenuStrip menuStrip, IStockIndicator stockIndicator)
     : base(name, NodeType.Indicator, menuStrip, (IStockViewableSeries)stockIndicator)
 {
     if (name.Contains("SR("))
     {
        this.ImageKey = "SR";
        this.SelectedImageKey = "SR";
     }
     else
     {
        this.ImageIndex = -1;
        this.SelectedImageIndex = -1;
     }
 }
 public HilbertAdvStrategy()
 {
     this.TriggerIndicator = StockIndicatorManager.CreateIndicator("HILBERTSR(1,8)");
      hilbertSR = (IStockIndicator)this.TriggerIndicator;
 }
 public void ApplyTo(StockSerie stockSerie)
 {
     this.baseIndicator = stockSerie.GetIndicator(this.Name);
 }
 public TrailHLStrategy()
 {
     this.TriggerIndicator = StockTrailStopManager.CreateTrailStop("TRAILHL(3)");
      trailStop = (IStockTrailStop)this.TriggerIndicator;
      movingAverage = (IStockIndicator)StockIndicatorManager.CreateIndicator("HMA(100)");
 }
 public SimBuyTrailingOrder()
 {
     this.TriggerIndicator = StockIndicatorManager.CreateIndicator("ATR(5)");
      atr = (IStockIndicator)this.TriggerIndicator;
 }