• 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

    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
    Attached Files

    #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
      Attached Files

      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

            http://stockcharts.com/school/doku.p...impulse_system

            Comment


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

              http://www.bigmiketrading.com/free_d...load.html?view

              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:
                  http://www.ninjatrader.com/support/f...ead.php?t=3170
                  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 Austiner87, Yesterday, 08:35 AM
                              1 response
                              6 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by NT-Roland, Today, 11:24 AM
                              1 response
                              10 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by NT-Roland, Today, 06:34 AM
                              1 response
                              11 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by gemini42, Yesterday, 09:44 PM
                              1 response
                              18 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by BobyGill, Today, 03:48 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post BobyGill  
                              Working...
                              X