Example #1
0
        public RSI RSI(object obj, int period)
        {
            RSI rsi = new RSI(obj, period);

            model.AddDependency(rsi);
            return(rsi);
        }
Example #2
0
        public override void OnInitialize()
        {
            Name              = "IFT";
            Drawing.PaneType  = PaneType.Secondary;
            Drawing.IsVisible = true;

            value1 = Formula.Indicator();
            value2 = Formula.Indicator();
            rsi    = Formula.RSI(Input, period);
            wma    = Formula.WMA(value1, period);
            Formula.Line(0.5, Color.LightGreen);
            Formula.Line(-0.5, Color.Red);
        }
Example #3
0
        public override void OnInitialize()
        {
            Name = "IFT";
            // Display below the price chart
            Drawing.PaneType = PaneType.Secondary;
            // Display below the price chart
            Drawing.IsVisible = true;

            // Creates the
            value1 = Formula.Indicator();
            value2 = Formula.Indicator();
            rsi    = Formula.RSI(Bars.Close, 5);
            wma    = Formula.WMA(value1, 5);
            Formula.Line(0.5, Color.LightGreen);
            Formula.Line(-0.5, Color.Red);
        }