Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dr. A. Elders Impuls System

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

    Dr. A. Elders Impuls System

    Hi,

    My second indicator, still quite a hassle to create this one but I managed.
    If someone finds joy in removing the calculations from the source and directly using the MACD native indicator function call. Please do and repost. I couldn't figure out how to handle the MACD native indicator call so I used the source of the MACD indicator as a starting point for this Impulse System.

    The indicator is described in Dr. Alexander elder his books:
    - Trading for a living
    - Come into my trading room

    It is based on an EMA and the MACD histogram. If both are ticking up the bar is green.
    If both are ticking down, the bar is red. If they tick in opposite direction the bar is blue.

    I might tweak and clean up the source code the coming days and I'll post my update here

    Here is a picture with a help EMA and a MACD histogram so you can see what it does. The indicator only draws the colored bars of the stock
    Click image for larger version

Name:	Impulse.jpg
Views:	1
Size:	89.3 KB
ID:	890345

    Enjoy!

    Wessel

    #2
    Thanks for the contribution Wessel.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Updated to version 1.2
      What changed/fixed
      - Made candle sticks graph useful again by creating filled and open candles
      Click image for larger version

Name:	Candle.gif
Views:	1
Size:	12.6 KB
ID:	848782

      OHLC View
      Click image for larger version

Name:	OHLC.gif
Views:	1
Size:	10.9 KB
ID:	848781

      Known bug: I use an unsupported function to find out if the chart is Candle Sticks or something different. It works fine as long as you don't change the price chart from OHLC into Candle sticks or from sticks into candles after you added the ImpulsSystem indicator.
      The work around is after you changed the price chart to add a new indicator apply and then delete this indicator again. Now the chart will be updated correctly

      Enjoy

      Wessel

      Comment


        #4
        Thanks for you work!
        Could you please explain the difference between full and empty candle?
        Thanks

        Comment


          #5
          Originally posted by Antton View Post
          Thanks for you work!
          Could you please explain the difference between full and empty candle?
          Thanks
          full = down
          empty = up

          Comment


            #6
            stockcharts added elder impulse system charts this month

            what they use to make it is

            Green Price Bar: (13-period EMA > previous 13-period EMA) and
            (MACD-Histogram > previous period's MACD-Histogram)

            Red Price Bar: (13-period EMA < previous 13-period EMA) and
            (MACD-Histogram < previous period's MACD-Histogram)

            Price bars are colored blue when conditions for a Red Price Bar or
            Green Price Bar are not met. The MACD-Histogram is based on MACD(12,26,9).

            What they wrote

            Comment


              #7
              I created a multi time frame strategy some time ago for this. You can download it from BMT.

              The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies

              Comment


                #8
                No value being assigned to Plot0.Set

                Hi
                I want to use the impulse system value (green, red, blue) in the Market Analyzer window. ImpusleSystem file included in this post changes bars color, and outputs TrendEma value to the chart data box. Generated an ImpulseValue indicator to assign a value 1, if green, 2 if red & 0 if it is blue. I see no values being assigned Plot0.set. The Market Analyzer window plots all 0 values initially and then an EMA (I guess) show up in ImpulseValue column. When I add it to the chart the Plot0 value in databox is blank. The code compiles without error. I used wizard to develop this indicator and only changed OnBarUpdate() method

                Please help. Where am I going wrong?

                protectedoverridevoid Initialize()
                {
                Add(
                new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Bar, "Plot0"));
                CalculateOnBarClose =
                true;
                Overlay =
                false;
                PriceTypeSupported =
                false;
                }

                protectedoverridevoid OnBarUpdate()
                {
                if ((MACD(Fast,Slow,Smooth).Diff[0]>MACD(Fast,Slow,Smooth).Diff[1])&&(EMA(Ema)[0]>EMA(Ema)[1]))
                {
                Plot0.Set(
                1);
                }
                elseif ((MACD(Fast,Slow,Smooth).Diff[0]<MACD(Fast,Slow,Smooth).Diff[1])&&(EMA(Ema)[0]<EMA(Ema)[1]))
                {
                Plot0.Set(
                2);
                }
                else
                {
                Plot0.Set(
                0);
                }
                }

                Comment


                  #9
                  Hello aps123,

                  Welcome to the NinjaTrader forums!

                  Are there any error messages noted in log tab of control center?

                  Since you're accessing EMA[1], you may be running into this issue:
                  Ryan M.NinjaTrader Customer Service

                  Comment


                    #10
                    Thank you very much for the prompt reply. It now works

                    Comment


                      #11
                      I'm fairly new to this. Could someone provide more details on how to install this indicator.
                      Thank you.

                      Comment


                        #12
                        Hello Valdek, and welcome to the forums!

                        Thank you for your post.

                        To install this indicator, you will download the .zip file. Do not unzip the file. Once you've downloaded the file, open NinjaTrader and go to File -> Utilities -> Import NinjaScript. Find the file (it will be in your Downloads folder, unless you download it to a different location), select it with a left-click, and select "Open". NinjaTrader will let you know that the indicator has been successfully installed.
                        Zach S.NinjaTrader Customer Service

                        Comment


                          #13
                          I'm trying to download this file, but it keeps giving me this damn .PHP file... How do I get the. ZIP file? I'm using the Internet Explorer browser.

                          Thanks

                          Comment


                            #14
                            Hello SpoonazX,

                            Are you able to download the .zip file from the following link?



                            To troubleshoot initially you can clear your internet browser cache and history. (In IE, Tools-->Options, delete cookies and files, clear history).


                            You can continue to troubleshoot this download with an alternative browser such as Google Chrome or Mozilla Firefox as well.
                            Ryan L.NinjaTrader Customer Service

                            Comment


                              #15
                              Google Chrome works better

                              Thanks Ryan....
                              I used Google Chrome and it worked perfect I get more problems with files when trying to use Internet Explorer... but yes, the link you provided also worked, thanks for you help on this!!!

                              All the best...

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Fran888, 02-16-2024, 10:48 AM
                              3 responses
                              43 views
                              0 likes
                              Last Post Sam2515
                              by Sam2515
                               
                              Started by martin70, 03-24-2023, 04:58 AM
                              15 responses
                              114 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by The_Sec, Today, 02:29 PM
                              1 response
                              7 views
                              0 likes
                              Last Post NinjaTrader_Jesse  
                              Started by jeronymite, 04-12-2024, 04:26 PM
                              2 responses
                              31 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Started by Mindset, 05-06-2023, 09:03 PM
                              10 responses
                              265 views
                              0 likes
                              Last Post NinjaTrader_BrandonH  
                              Working...
                              X