• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dr. A. Elders Impuls System

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Corrupt File Message

    Im lloking to download htis indicator, and although the download via the link provided worked, when I try to import the (unzipped) download NT says the file is corrupted:

    http://screencast.com/t/MyVDtWPtW

    Has anyone else had this issue?

    Comment


      #17
      Hello WilyCa,

      Thank you for writing in.

      Did you replace your existing @EMA file when you were prompted when you imported?

      I look forward to your reply.
      Zach S.NinjaTrader Customer Service

      Comment


        #18
        Hi Zach,

        No, I didnt. It looked a fairly terminal error. Could you explain in idiot proof steps how I woudl go about this?

        Comment


          #19
          Hello WIlyCa,


          Thank you for the follow up.


          To import indicators you will need the original .zip file.

          Here is a basic guideline of how to Import indicators.

          To Import
          1. Download the indicator to your desktop, keep them in the compressed .zip file.
          2. From the Control Center window select the menu File > Utilities > Import NinjaScript
          3. Select the downloaded .zip file
          4. NinjaTrader will then confirm if the import has been successful.

          Critical - Specifically for some indicators, it will prompt that you are running newer versions of @SMA, @EMA, etc. and ask if you want to replace, press 'No'
          Ryan L.NinjaTrader Customer Service

          Comment


            #20
            Elder Impulse System

            The shortened script below does not change the most latest bar/candle. Any ideas how to fix code?

            #region Variables
            // Wizard generated variables
            private int ema = 12; // Default setting for Ema
            private int fast = 12; // Default setting for Fast
            private int slow = 26; // Default setting for Slow
            private int smooth = 9; // Default setting for Smooth
            // private bool calcOnClose = false;
            // User defined variables (add any user defined variables below)

            private DataSeries fastEma;
            private DataSeries slowEma;
            private DataSeries diffArr;
            private DataSeries avg;

            #endregion

            /// <summary>
            /// This method is used to configure the indicator and is called once before any bar data is loaded.
            /// </summary>
            protected override void Initialize()
            {
            Add(new Plot(Color.FromKnownColor(KnownColor.Transparent), PlotStyle.Line, "TrendEma"));

            //CalculateOnBarClose = false;
            Overlay = true;
            PriceTypeSupported = false;

            fastEma = new DataSeries(this);
            slowEma = new DataSeries(this);
            diffArr = new DataSeries(this);
            avg = new DataSeries(this);
            }

            /// <summary>
            /// Called on each bar update event (incoming tick)
            /// </summary>
            protected override void OnBarUpdate()
            {

            if (CurrentBar == 0){
            fastEma.Set(Input[0]);
            slowEma.Set(Input[0]);
            Value.Set(0);
            avg.Set(0);
            }
            else{

            fastEma.Set((2.0 / (1 + Fast)) * Input[0] + (1 - (2.0 / (1 + Fast))) * fastEma[1]);
            slowEma.Set((2.0 / (1 + Slow)) * Input[0] + (1 - (2.0 / (1 + Slow))) * slowEma[1]);

            double macd = fastEma[0] - slowEma[0];
            double macdAvg = (2.0 / (1 + Smooth)) * macd + (1 - (2.0 / (1 + Smooth))) * avg[1];

            diffArr.Set(macd - macdAvg);

            Value.Set(macd);
            avg.Set(macdAvg);

            double thisEma = EMA(ema)[0];
            TrendEma.Set(thisEma);

            double prevEma = EMA(ema)[1];

            //Log(ChartControl.ChartStyleType.ToString() ,LogLevel.Error);

            if( diffArr.Get(CurrentBar)>diffArr.Get(CurrentBar - 1) &&
            prevEma < thisEma ){

            CandleOutlineColor = Color.Green;
            if(Open[0]<Close[0] && ChartControl.ChartStyleType == ChartStyleType.CandleStick ) {
            BarColor = Color.Transparent;
            } else {
            BarColor = Color.Green;
            }

            } else if( diffArr.Get(CurrentBar)<diffArr.Get(CurrentBar - 1) &&
            prevEma > thisEma ){

            CandleOutlineColor = Color.Red;
            if(Open[0]<Close[0] && ChartControl.ChartStyleType == ChartStyleType.CandleStick ) {
            BarColor = Color.Transparent;
            } else {
            BarColor = Color.Red;
            }

            } else {

            CandleOutlineColor = Color.Blue;
            if(Open[0]<Close[0] && ChartControl.ChartStyleType == ChartStyleType.CandleStick ) {
            BarColor = Color.Transparent;
            } else {
            BarColor = Color.Blue;
            }

            }
            }

            }

            #region Properties

            [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
            [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
            public DataSeries TrendEma
            {
            get { return Values[0]; }
            }

            [Description("Number of bars for the trend EMA")]
            [Category("Parameters")]
            public int Ema
            {
            get { return ema; }
            set { ema = Math.Max(1, value); }
            }

            [Description("Number of bars for the fast MACD period")]
            [Category("Parameters")]
            public int Fast
            {
            get { return fast; }
            set { fast = Math.Max(1, value); }
            }

            [Description("Number of bars for the slow MACD period")]
            [Category("Parameters")]
            public int Slow
            {
            get { return slow; }
            set { slow = Math.Max(1, value); }
            }

            [Description("Number of bars for the fast MACD smoothing")]
            [Category("Parameters")]
            public int Smooth
            {
            get { return smooth; }
            set { smooth = Math.Max(1, value); }
            }

            // [Description("Calculate on bar close")]
            // [Category("Parameters")]
            // public bool CalOnBarClose
            // {
            // get { return calcOnClose; }
            // set { calcOnClose = value; }
            // }
            #endregion
            }
            }

            #region NinjaScript generated code. Neither change nor remove.
            // This namespace holds all indicators and is required. Do not change it.
            namespace NinjaTrader.Indicator
            {
            public partial class Indicator : IndicatorBase
            {
            private ImpulseSystem[] cacheImpulseSystem = null;

            private static ImpulseSystem checkImpulseSystem = new ImpulseSystem();

            /// <summary>
            /// Dr. Elder's ImpulseSystem. It uses the direction of an EMA and the up or down ticks from the MACD histogram
            /// </summary>
            /// <returns></returns>
            public ImpulseSystem ImpulseSystem(int ema, int fast, int slow, int smooth)
            {
            return ImpulseSystem(Input, ema, fast, slow, smooth);
            }

            /// <summary>
            /// Dr. Elder's ImpulseSystem. It uses the direction of an EMA and the up or down ticks from the MACD histogram
            /// </summary>
            /// <returns></returns>
            public ImpulseSystem ImpulseSystem(Data.IDataSeries input, int ema, int fast, int slow, int smooth)
            {
            checkImpulseSystem.Ema = ema;
            ema = checkImpulseSystem.Ema;
            checkImpulseSystem.Fast = fast;
            fast = checkImpulseSystem.Fast;
            checkImpulseSystem.Slow = slow;
            slow = checkImpulseSystem.Slow;
            checkImpulseSystem.Smooth = smooth;
            smooth = checkImpulseSystem.Smooth;

            if (cacheImpulseSystem != null)
            for (int idx = 0; idx < cacheImpulseSystem.Length; idx++)
            if (cacheImpulseSystem[idx].Ema == ema && cacheImpulseSystem[idx].Fast == fast && cacheImpulseSystem[idx].Slow == slow && cacheImpulseSystem[idx].Smooth == smooth && cacheImpulseSystem[idx].EqualsInput(input))
            return cacheImpulseSystem[idx];

            ImpulseSystem indicator = new ImpulseSystem();
            indicator.BarsRequired = BarsRequired;
            indicator.CalculateOnBarClose = CalculateOnBarClose;
            indicator.Input = input;
            indicator.Ema = ema;
            indicator.Fast = fast;
            indicator.Slow = slow;
            indicator.Smooth = smooth;
            indicator.SetUp();

            ImpulseSystem[] tmp = new ImpulseSystem[cacheImpulseSystem == null ? 1 : cacheImpulseSystem.Length + 1];
            if (cacheImpulseSystem != null)
            cacheImpulseSystem.CopyTo(tmp, 0);
            tmp[tmp.Length - 1] = indicator;
            cacheImpulseSystem = tmp;
            Indicators.Add(indicator);

            return indicator;
            }

            }
            }

            // This namespace holds all market analyzer column definitions and is required. Do not change it.
            namespace NinjaTrader.MarketAnalyzer
            {
            public partial class Column : ColumnBase
            {
            /// <summary>
            /// Dr. Elder's ImpulseSystem. It uses the direction of an EMA and the up or down ticks from the MACD histogram
            /// </summary>
            /// <returns></returns>
            [Gui.Design.WizardCondition("Indicator")]
            public Indicator.ImpulseSystem ImpulseSystem(int ema, int fast, int slow, int smooth)
            {
            return _indicator.ImpulseSystem(Input, ema, fast, slow, smooth);
            }

            /// <summary>
            /// Dr. Elder's ImpulseSystem. It uses the direction of an EMA and the up or down ticks from the MACD histogram
            /// </summary>
            /// <returns></returns>
            public Indicator.ImpulseSystem ImpulseSystem(Data.IDataSeries input, int ema, int fast, int slow, int smooth)
            {
            return _indicator.ImpulseSystem(input, ema, fast, slow, smooth);
            }

            }
            }

            // This namespace holds all strategies and is required. Do not change it.
            namespace NinjaTrader.Strategy
            {
            public partial class Strategy : StrategyBase
            {
            /// <summary>
            /// Dr. Elder's ImpulseSystem. It uses the direction of an EMA and the up or down ticks from the MACD histogram
            /// </summary>
            /// <returns></returns>
            [Gui.Design.WizardCondition("Indicator")]
            public Indicator.ImpulseSystem ImpulseSystem(int ema, int fast, int slow, int smooth)
            {
            return _indicator.ImpulseSystem(Input, ema, fast, slow, smooth);
            }

            /// <summary>
            /// Dr. Elder's ImpulseSystem. It uses the direction of an EMA and the up or down ticks from the MACD histogram
            /// </summary>
            /// <returns></returns>
            public Indicator.ImpulseSystem ImpulseSystem(Data.IDataSeries input, int ema, int fast, int slow, int smooth)
            {
            if (InInitialize && input == null)
            throw new ArgumentException("You only can access an indicator with the default input/bar series from within the 'Initialize()' method");

            return _indicator.ImpulseSystem(input, ema, fast, slow, smooth);
            }

            }
            }
            #endregion

            Comment


              #21
              Hello and thanks for your post.

              If you change the setting of CalculateOnbarClose from true to false, the bar being formed will change.

              Please let me know if I can be of further assistance.
              Paul H.NinjaTrader Customer Service

              Comment


                #22
                Thanks

                Works! Thanks Paul.

                Comment


                  #23
                  Time Frame

                  Dear All,
                  The signal that can generate this trading system could be interesting to look at: It gives the trend from different time frame.
                  However, personaly, a minor time frame chart should be consider as a "tactical chart" for entries.
                  Q: How I can get this famous signal on a minor time frame chart with this Zip file ?

                  Sorry I am new or Jumior with NT...
                  Thanks in advance.
                  ----------------------------------------------------------------------------------------------------------------------------

                  Dear all,
                  Greetings !
                  Quick question: how to you get THE signal on this strategy ?
                  It is a multiple time frame strategy so do you need to open at least 2 charts and run on both this strategy to get THE signal on the inferior time frame ?
                  Thank you in advance for your kind help.

                  DJ
                  Last edited by Damienjeanne; 10-22-2014, 06:53 AM. Reason: Update

                  Comment


                    #24
                    I couldn't get the indicator to work, but as I was only slightly curious, I havent pursued. The webinar below explains the indicator. Not sure of your level of knowledge, but the indicator is not a stand alone entry/exit tool.

                    http://www.youtube.com/watch?v=50LXs_Hs1aY

                    Comment


                      #25
                      Time frame

                      Thx wilyCa

                      Comment


                        #26
                        Hello,

                        I just downloaded the Elder Impulse System.. Is there any kind of documentation on how this strategy works..?

                        Thanks Michael

                        Comment


                          #27
                          https://lmgtfy.com/?q=elder+impulse+system

                          Comment


                            #28
                            Hello,

                            I figured out how to use Google 20 years ago..

                            All I need is a bit of clarification.. Let me rephrase my last post... How do you work the strategy based on it's properties..? Please...

                            Thank You..

                            Michael

                            Comment


                              #29
                              Hello Michael,

                              Thanks for your reply.

                              In the NT7 strategy (which the NT8 version was converted from) the description provides two links for the strategy. I do not know why the description was not copied to the NT8 version.
                              For your convenience here is the NT7 description with links:

                              Elder Impulse trading system. Includes support for a second, higher time frame period for determining trend and momentum. The background is painted pink when the higher time frame trend and momentum is down, and green when it is up. The rules for entering and exiting a trade are described here on Investopedia and Stockcharts.com.

                              Please note that the NT7 strategy was provided by member shodson to begin with.

                              Paul H.NinjaTrader Customer Service

                              Comment


                                #30
                                Paul,

                                I'm confused on how the parameters work in it's properties window.. HTFType, HTFPeriod, TradeTimeBegin, TradeTimeStart.
                                I understand the concept of the strategy..



                                Michael

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by JPPoulin, Today, 10:43 AM
                                1 response
                                8 views
                                0 likes
                                Last Post NinjaTrader_ChrisL  
                                Started by explorer101, Today, 10:45 AM
                                1 response
                                7 views
                                0 likes
                                Last Post NinjaTrader_ChelseaB  
                                Started by caveat_lector, Today, 10:22 AM
                                2 responses
                                5 views
                                0 likes
                                Last Post caveat_lector  
                                Started by itrader46, Today, 10:24 AM
                                3 responses
                                14 views
                                0 likes
                                Last Post NinjaTrader_Jesse  
                                Started by gastonwhite, Today, 08:37 AM
                                6 responses
                                13 views
                                0 likes
                                Last Post gastonwhite  
                                Working...
                                X