Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

MACDUpDown

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

    MACDUpDown

    I downloaded this from the Indicator thread and I notice that it does not plot the same as both the TradeStation and MetaTrader versions. Specifically, if I set the input to 12,26,1 I lose the histogram. TradeStation example attached.

    Any ideas how to fix this, please (I tried your standard MACD and got the same result) ?

    J.

    Edit : I could send you the TS code if you like ?
    Attached Files

    #2
    jtrade,

    You may want to try and come into contact with the original author for this request.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Er... I thought it was you, dear Josh !?

      " Submitted by NinjaTrader_Josh
      04-03-2008
      Hits 442
      2.24 Kbytes

      [Rate/Comment]
      "

      Comment


        #4
        Nope. It was Wessel.

        "Exported using NT Version 6.5.1000.1
        Originally submitted by Wessel

        Description
        I've changed the MACD histogram. I've seen this in the book entries and exits from A. Elder in the chapter of Kerry L. I found i very usefull so I implemented it for NT. The histogram turns red when the histogram ticks down and it turns green when the histogram ticks up. Ideal for timing the markets. and see in a glimpse a down or uptick of the histogram."
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          TS8 code :

          inputs:
          FastLength( 12),
          SlowLength( 26),
          MACDLength( 9),
          upcolor(green),
          upcolor2(red),
          dncolor(red),
          dncolor2(green);

          variables:
          MyMACD( 0 ) ;

          MyMACD = MACD( Close, FastLength, SlowLength ) ;
          Plot1(MyMACD, "MACD" ) ;
          if MyMACD<MyMACD[1] and MyMACD<0 then setplotcolor(1,dncolor)
          else if MyMACD>MyMACD[1] and MyMACD<0 then setplotcolor(1,dncolor2)
          else if MyMACD>MyMACD[1] and MyMACD>0 then setplotcolor(1,upcolor)
          else if MyMACD<MyMACD[1] and MyMACD>0 then setplotcolor(1,upcolor2);
          Plot2(0,"zeroline");

          { Alert criteria }
          if MyMACD crosses over 0 then
          Alert( "Bullish alert" )
          else if MyMACD crosses under 0 then
          Alert( "Bearish alert" ) ;

          Comment


            #6
            Originally posted by NinjaTrader_Josh View Post
            Nope. It was Wessel
            Where is Wessel when you need him !?

            But I think he based his code on the standard Ninja MACD which differs just like the colored version... ?

            Comment


              #7
              I cannot comment on how a 3rd party indicator is built. You will want to try and contact Wessel.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                I can see what it is : in TS (and presumably MT4), the MACD averaae is the histogram, wherea in NT the Avergae is a line ... problem solved !

                So sorry.

                Have a great weekend !

                ;o)

                J.

                Comment


                  #9
                  No sign of / response from Wessell... but FWIW I think Ninja should make the option to color the up and down bars differently standard within MACD : it's available for most decent charting platforms.

                  Any chance, please ?

                  Comment


                    #10
                    jtrade,

                    At the moment custom multicolor plots will need to be achieved via custom programming. Thank you for your suggestion.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Ppo

                      I really enjoy this indicator, and have not 1 bit of coding or programming experience, so I certainly appreciate the contributions that others make. I do have a question though and not sure if this is the right place to post it, but can the same coding that was done for this MACD up/down, be done for the PPO indicator, because it's a tad bit smoother than the MACD. Thanks

                      Comment


                        #12
                        jdella,

                        As a last resort you can also try one of the 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Originally posted by jdella View Post
                          I really enjoy this indicator, and have not 1 bit of coding or programming experience, so I certainly appreciate the contributions that others make. I do have a question though and not sure if this is the right place to post it, but can the same coding that was done for this MACD up/down, be done for the PPO indicator, because it's a tad bit smoother than the MACD. Thanks
                          @jdella - can you clarify your request? from what i see, the PPO does not have a histogram to color like the MACD.

                          Comment


                            #14
                            E-man it actually does, because once you add the indicator to your chart you can change it from a line study to a bar or histogram. Then if it could be coded as this MACD Up Down was coded it would be nice. I find it a bit smoother than the MACD. Once you add PPO to your chart then click on it and go to plots and open up the smoothed plus sign and where it says plot style change it from line to bar and there you have a histogram, but I have no idea how to code it the way this MACD Up Down is done. If you know how to do that, then I would be most grateful.

                            Comment


                              #15
                              ok, have a look and see if this does what you were looking for ...

                              i also added an "outline" to the histogram (which is the old smooth line), but if you prefer just the raw bars, you can change that color to transparent.

                              cheers,
                              -e

                              EDIT: zip file removed; relocated to last post in thread.
                              Last edited by e-man; 04-08-2010, 07:17 AM.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                              0 responses
                              601 views
                              0 likes
                              Last Post Geovanny Suaza  
                              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                              0 responses
                              347 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by Mindset, 02-09-2026, 11:44 AM
                              0 responses
                              103 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                              0 responses
                              559 views
                              1 like
                              Last Post Geovanny Suaza  
                              Started by RFrosty, 01-28-2026, 06:49 PM
                              0 responses
                              558 views
                              1 like
                              Last Post RFrosty
                              by RFrosty
                               
                              Working...
                              X