Esempio n. 1
0
        //******************************************

        protected override void Initialize()
        {
            //**************************************
            LR_Slope = Indicators.LinearRegressionSlope(MarketSeries.Close, 12);
            MA20     = Indicators.ExponentialMovingAverage(MarketSeries.Close, 20);
            MA50     = Indicators.ExponentialMovingAverage(MarketSeries.Close, 50);
            MA100    = Indicators.ExponentialMovingAverage(MarketSeries.Close, 100);

            LTF_Candle = MarketData.GetSeries(LTF);
            MTF_Candle = MarketData.GetSeries(MTF);
            STF_Candle = MarketData.GetSeries(STF);
            //**************************************

            ///////////////////////////////////////////////////////////

            // Initialize and create nested indicators

            MA = Indicators.MovingAverage(MarketSeries.Close, MA_Periods, MovingAverageType.Exponential);
            // Initalize RSI
            RSI = Indicators.RelativeStrengthIndex(MarketSeries.Close, RSI_Periods);

            // Initalize CCI
            CCI = Indicators.CommodityChannelIndex(MarketSeries, CCI_Periods);

            thecount = MarketSeries.Close.Count;
            Print("theCount = " + thecount);
        }
Esempio n. 2
0
 protected override void Initialize()
 {
     MacD = Indicators.MacdHistogram(LngCycle, ShrtCycle, SigPeriod);
     // Initialize keltner Channels
     _momentum = Indicators.MomentumOscillator(MarketSeries.Close, Periods);
     LR_Slope  = Indicators.LinearRegressionSlope(MarketSeries.Close, Periods);
     Klt       = Indicators.KeltnerChannels(Klt_Periods, MovingAverageType.Exponential, Klt_ATR_Periods, MovingAverageType.Simple, Klt_stdDev);
     bb        = Indicators.BollingerBands(bb_Source, bb_Periods, bb_stdDev, MovingAverageType.Simple);
 }
Esempio n. 3
0
        //public IndicatorDataSeries bb_main { get; set; }
        //[Output("4", Color = Colors.Red, PlotType = PlotType.Line, Thickness = 2)]
        //public IndicatorDataSeries bb_top { get; set; }

        //[Output("5", Color = Colors.Red, PlotType = PlotType.Line, Thickness = 2)]
        //public IndicatorDataSeries bb_bottom { get; set; }

        //public IndicatorDataSeries bb_bottom;

        //////////////////////////////////



        protected override void Initialize()
        {
            MacD_Series = MarketData.GetSeries(MacD_TF);
            // Initialize keltner Channels
            LR_Slope  = Indicators.LinearRegressionSlope(MarketSeries.Close, Periods);
            _momentum = Indicators.MomentumOscillator(MarketSeries.Close, Periods);
            MacD      = Indicators.MacdHistogram(MacD_Series.Close, LngCycle, ShrtCycle, SigPeriod);

            Klt = Indicators.KeltnerChannels(20, MovingAverageType.Exponential, 10, MovingAverageType.Simple, 1.5);
            bb  = Indicators.BollingerBands(bb_Source, 20, 2.0, MovingAverageType.Simple);
            //form1 = new System.Windows.Forms.Form();
        }