コード例 #1
0
ファイル: CCI.cs プロジェクト: zoomcoder/TickZoomPublic
        public override void OnInitialize()
        {
            Name              = "CCI_New";
            Drawing.Color     = Color.Orange;
            Drawing.PaneType  = PaneType.Secondary;
            Drawing.IsVisible = true;

            Formula.Line(200, Color.DarkGray, "Level 2");
            Formula.Line(100, Color.DarkGray, "Level 1");
            Formula.Line(0, Color.DarkGray, "Zero line");
            Formula.Line(-100, Color.DarkGray, "Level -1");
            Formula.Line(-200, Color.DarkGray, "Level -2");
            sma = Formula.SMA(Input, Period);
        }
コード例 #2
0
ファイル: Volume.cs プロジェクト: prid77/TickZoomPublic
        public override void OnInitialize()
        {
            Drawing.PaneType  = PaneType.Secondary;
            Drawing.GraphType = GraphType.Histogram;
            Drawing.GroupName = "Volume";

            averageVolume = new SMA(Bars.Volume, 5);
            averageVolume.Drawing.GroupName = "Volume";
            AddIndicator(averageVolume);

            high    = Formula.Line(266000, Color.Red);
            average = Formula.Line(187000, Color.Orange);
            low     = Formula.Line(107000, Color.Green);
        }
コード例 #3
0
ファイル: RSI.cs プロジェクト: prid77/TickZoomPublic
 public override void OnInitialize()
 {
     if (anyPrice == null)
     {
         price = Doubles(Bars.Close);
     }
     else
     {
         price = Doubles(anyPrice);
     }
     avgPrice                 = new SMA(Bars.Close, period);
     avgPrice.Name            = "AvgPrice";
     avgPrice.IntervalDefault = IntervalDefault;
     gain         = Integers();
     loss         = Integers();
     avgGain      = new SMA(gain, period);
     avgGain.Name = "AvgGain";
     avgLoss      = new SMA(loss, period);
     avgLoss.Name = "AvgLoss";
     AddIndicator(avgPrice);
     AddIndicator(avgGain);
     AddIndicator(avgLoss);
 }