Пример #1
0
 public override void OnInitialize()
 {
     pivotLow = new PivotLowVs(leftStrength, rightStrength);
     pivotLow.IntervalDefault = pivotTimeFrame;
     pivotLow.Drawing.Color   = pivotColor;
     pivotHigh = new PivotHighVs(leftStrength, rightStrength);
     pivotHigh.IntervalDefault = pivotTimeFrame;
     pivotHigh.Drawing.Color   = pivotColor;
     AddIndicator(pivotLow);
     AddIndicator(pivotHigh);
 }
Пример #2
0
        public override void OnInitialize()
        {
            low = new PivotLowVs(1, 1);
            low.IntervalDefault = IntervalDefault;
            low.DisableBoxes    = true;
            AddIndicator(low);

            high = new PivotHighVs(1, 1);
            high.IntervalDefault = IntervalDefault;
            high.DisableBoxes    = true;
            AddIndicator(high);
        }
Пример #3
0
        public override void OnInitialize()
        {
            pivotHigh = new PivotHighVs(strength, strength);
            pivotHigh.IntervalDefault = Intervals.Hour1;
            AddIndicator(pivotHigh);

            pivotLow = new PivotLowVs(strength, strength);
            pivotLow.IntervalDefault = Intervals.Hour1;
            AddIndicator(pivotLow);

            pivotDiff = new IndicatorCommon();
            pivotDiff.IntervalDefault = Intervals.Hour1;
            AddIndicator(pivotDiff);
        }
Пример #4
0
        public override void OnInitialize()
        {
            #region DOM
//			dom = new DOMRatio();
//			dom.PaneType = PaneType.Secondary;
//			dom.PaneType = PaneType.Hidden;
//			dom.BarPeriod = BarPeriod.Second10;
//			AddIndicator(dom);
            #endregion

            pivotHighs = new PivotHighVs(2, 2);
            pivotHighs.Drawing.IsVisible = true;
            AddIndicator(pivotHighs);

            pivotLows = new PivotLowVs(2, 2);
            pivotLows.Drawing.IsVisible = true;
            AddIndicator(pivotLows);

            average = new TEMA(Bars.Close, 5);
//			average.Drawing.IsVisible = true;
            average.Drawing.GroupName = "Average";
            AddIndicator(average);

            pace = new IndicatorCommon();
            pace.Drawing.GraphType = GraphType.Histogram;
//			pace.Drawing.IsVisible = true;
            pace.Drawing.GroupName = "Pace";
            AddIndicator(pace);

            equity = new IndicatorCommon();
//			equity.Drawing.IsVisible = true;
            equity.Drawing.GroupName = "Equity";
            equity.Drawing.PaneType  = PaneType.Secondary;
            equity.Drawing.GraphType = GraphType.FilledLine;
            equity.Drawing.Color     = Color.Green;
            AddIndicator(equity);

            ExitStrategy.DailyMaxProfit = 320;
//			Exits.DailyMaxLoss = 320;
            ExitStrategy.StopLoss = 300;
        }