Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Need Help With Color Coded MACD

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

    #16
    Originally posted by ctrlbrk View Post
    Screen shot?

    Mike
    Sure Mike. Attached is an hourly ES chart which shows two instances where the MACD ticked down but did not change color. Thanks for any help.

    Comment


      #17
      Hi Max,

      I 've checked the code and is ok. As I suspected you refer to the way NT connects multi-color lines. That's why I don't like multi-color lines very much. They are good for studying the market but not for trading.

      Anyway, here I attach another version which is the same like the previous one with the only difference that now paints the background according to whether the Macd is going up or down (ie like the multicolored Macd line). The background color is more reliable and you can spot the differences. Hope it helps.

      astra

      PS. If you like to use the Rising?falling for strategies, I advice you avoid it. It is better to use the conventional way.
      Last edited by astra; 12-08-2009, 09:59 AM.

      Comment


        #18
        Originally posted by maxreturn View Post
        Sure Mike. Attached is an hourly ES chart which shows two instances where the MACD ticked down but did not change color. Thanks for any help.
        Place the second version you've send you and you will spot it!

        Perhaps Mike has another algorithm for joining multicolored lines -there was recently a discussion in a thread, but i don't know the outcome. Bye for now.

        Comment


          #19
          Originally posted by astra View Post
          Place the second version you've send you and you will spot it!

          Perhaps Mike has another algorithm for joining multicolored lines -there was recently a discussion in a thread, but i don't know the outcome. Bye for now.
          Thanks Astra. You've really gone beyond the call of duty. I deeply appreciate your efforts. God Bless.

          Max

          Comment


            #20
            Originally posted by maxreturn View Post
            Thanks Astra. You've really gone beyond the call of duty. I deeply appreciate your efforts. God Bless.

            Max
            My pleasure Max. I am now struggling with three interelated indicators of my own and it is a mind boggling business. I tend to find good excuses to distract myself from the task! God help that we'll be both around for a while in this business and I might make use of your kind offer one day. You are already in my buddy list. Best wishes,
            astra

            Comment


              #21
              You can get around the Ninja limitation by directly drawing the line. This is way above my head, but all the code is in the DoubleMA indicator. I've never noticed any issues with it like the "normal" Ninja method (replacing plot values).

              It might be simpler to pass the values to DoubleMA and let it handle the painting, but this would take some doing as well for MACD although I believe it is certainly possible.

              Mike

              Comment


                #22
                Might also check out:



                Mike

                Comment


                  #23
                  This is my first attempt at NinjaScript. Thanks in advance for any help with this.

                  Okay, this is what I was able to put together tonight. I know I will have to redo the inputs (forgot to account for the DStochMod inputs(EMAPeriod, Period)).

                  But, now my question is...how do I get the script to give a SMA of the DSM (DStochMod)?

                  Any suggestions appreciated.

                  Regards,

                  phoenix

                  Comment


                    #24
                    phoenix, was there supposed to be an attachement with code? Can't see it...

                    for the SMA of the DS, you can use something like this (this uses the default Stochastics, change this to your DS method) -

                    Code:
                     
                    double smaStoch = SMA(Stochastics(10, 3, 3), 10)[0];

                    Comment


                      #25
                      the changing background color with rising/falling macd

                      Hello, this is what i was looking for which is discussed in this post. However, I dont see the indicator so I can download it. Can anyone help? The idea of the background changing on the macd showing rising and falling is great.

                      Comment


                        #26
                        I also need to specify.....

                        I would like to plot the macd diff as a line that changes color if its rising and another color if falling. As well as the background changing color. Does someone have the indicator? thanks a million.

                        Comment


                          #27
                          Originally posted by winJR View Post
                          I would like to plot the macd diff as a line that changes color if its rising and another color if falling. As well as the background changing color. Does someone have the indicator? thanks a million.
                          Hello winJR. A generous individual with the screen name "astra" coded a MACD for me whose background color changes to green when it ticks up and red when it ticks down. The color of the histogram also changes color BUT it doesn't have the capability of background color changes. If you want this indicator PM me with your email address and I would be happy to send it to you.

                          Regards
                          Max

                          Comment


                            #28
                            Hi Astra,

                            I'm trying to do exactly the same thing as maxreturn. From the thread it sounds as if you've posted the solution. Is there anyway I can get it too?

                            Thanks

                            Comment


                              #29
                              Here you go.
                              Attached Files

                              Comment


                                #30
                                Originally posted by svenskcia View Post
                                Hi Astra,

                                I'm trying to do exactly the same thing as maxreturn. From the thread it sounds as if you've posted the solution. Is there anyway I can get it too?

                                Thanks
                                Hello. I already uploaded the indicator to the indicator section of the ninja script file sharing forum. The indicator is called MACDcolorbackground which can be found on page 9. Enjoy.

                                Regards
                                Max

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                                0 responses
                                583 views
                                0 likes
                                Last Post Geovanny Suaza  
                                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                                0 responses
                                339 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
                                554 views
                                1 like
                                Last Post Geovanny Suaza  
                                Started by RFrosty, 01-28-2026, 06:49 PM
                                0 responses
                                552 views
                                1 like
                                Last Post RFrosty
                                by RFrosty
                                 
                                Working...
                                X