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:



    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, 07: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.

                    Learn trading techniques from legendary, and ever popular, Master Trader; Dr. Alexander ElderIn this 60 minute live presentation, Dr. Alexander Elder will ex...

                    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
                          For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.

                          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 TheMarlin801, 10-13-2020, 01:40 AM
                                20 responses
                                3,914 views
                                0 likes
                                Last Post Bidder
                                by Bidder
                                 
                                Started by timmbbo, 07-05-2023, 10:21 PM
                                3 responses
                                150 views
                                0 likes
                                Last Post grayfrog  
                                Started by Lumbeezl, 01-11-2022, 06:50 PM
                                30 responses
                                805 views
                                1 like
                                Last Post grayfrog  
                                Started by xiinteractive, 04-09-2024, 08:08 AM
                                3 responses
                                11 views
                                0 likes
                                Last Post NinjaTrader_Erick  
                                Started by Johnny Santiago, 10-11-2019, 09:21 AM
                                95 responses
                                6,194 views
                                0 likes
                                Last Post xiinteractive  
                                Working...
                                X