Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RMMA & ModHeikenAshi

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

    RMMA & ModHeikenAshi

    "Rainbow Multiple Moving Averages" and "Modified Heiken Ashi".

    As you can see from the screenshot these are a couple of pretty trend indicators. Please feel free to make your own modifications, suggested uses and report bugs. Note the RMMA comes with alpha and draw, as well as colour options.



    Changelog:

    Changed ModHeikenAshi 19th August - Vers 0.2, now has option to hide the shadow lines


    To import:

    - Download the file(s) contained in this thread to your desktop
    - From the Control Center window select the menu File > Utilities > Import NinjaScript
    - Select the downloaded file(s)
    Attached Files
    Last edited by Gumphrie; 08-18-2007, 05:16 PM.

    #2
    Looks sweet Gumphrie. Good job and thanks.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Gumphrie, Thanks so much. Exactly what I was looking for!

      Comment


        #4
        Hello Gumphrie
        Could you please explain a bid more in detail , how to use "alpha" and "draw" - method to generate this transparent color effect in general ?

        Kind regs
        Jojo

        Comment


          #5
          Originally posted by jojojo View Post
          Could you please explain a bid more in detail , how to use "alpha" and "draw" - method to generate this transparent color effect in general ?
          Sure Jojo, I was referring to the "Alpha" and "Drawtype" in the RMMA indicator properties. The "DrawType" isn't related to the transparency, but to the indicator's ability to draw the MAs either as lines or as filled areas.

          In the C# code generally, to set the transparency you take the colour you want to set the transparency on and use the following function :

          Code:
          Color.FromArgb(Alpha, inputColor)
          Where Alpha is a value between 0-255, 255 being solid and 0 being invisible and inputColor is the standard colour you want to adapt such as "Color.Blue", "Color.Red", etc..

          This use of the Color.FromArgb method like this with 2 arguments is just one of four possible overloads. Another use of it that I have deployed in ModHeikenAshi (and in the BBS indicator and others for the dot border colour) is to automatically create a colour which is the oposite of the chart background colour, useful if you want a 'border' or 'shadow' colour without having to worry about the user's settings for the chart background. Here is the relevant code for that:

          Code:
          byte bRed   = (byte)~(ChartControl.BackColor.R);
          byte bGreen = (byte)~(ChartControl.BackColor.G);
          byte bBlue  = (byte)~(ChartControl.BackColor.B);
          
          Pen pen = new Pen(Color.FromArgb(bRed,bGreen,bBlue), ShadowWidth);
          Last edited by Gumphrie; 08-12-2007, 02:33 PM.

          Comment


            #6
            Very good explanation. Helps again to the next steps of learning this amazing platform. I'm glad to join .Thank you and keep going on.
            Jojo

            Comment


              #7
              Sorry, that should be 0 - 255, rather than 0 -128 for the Alpha range, I'll edit the above post.

              Comment


                #8
                Gump

                Thanks for Mod HA!!

                Is it possible to have the "shadow color" added? With the standard NT H.A. the shadow can be set to "transparent" which allows the full candle to paint one solid color. This eliminates the black vertical shadow bar inside the candle.

                Thanks again. Love your work!

                Z

                Comment


                  #9
                  Originally posted by zelli View Post
                  Gump

                  Thanks for Mod HA!!

                  Is it possible to have the "shadow color" added? With the standard NT H.A. the shadow can be set to "transparent" which allows the full candle to paint one solid color. This eliminates the black vertical shadow bar inside the candle.

                  Thanks again. Love your work!

                  Z
                  Thanks. I can add an option to hide it / turn it off if you like? The "shadow color" is not editable at the moment because its auto-adjusting to the background color of you chart which is why you can't find it in properties. I was also thinking of changing it so it paints like a normal candle and works better on OHLC and HiLow bars. What do you think?

                  Comment


                    #10
                    Gumphrie,

                    I would like to see that option to hide the shadow color if possible.

                    Thanks'

                    P

                    Comment


                      #11
                      I've added the option in, please download from the first post.

                      I can see now that solves the OHLC and HiLoBar issue too, great!

                      Comment


                        #12
                        Gumphrie, I owe you one on this indicator, it is a great example of how to do some non standard stuff in NT.

                        Thanks a lot, can't tell you how much time it saved me!

                        Of course also thanks to Josh & KBJ and all other contributing members whose names I haven't mentioned
                        Last edited by Rollins; 11-02-2007, 01:26 AM.

                        Comment


                          #13
                          Is anyone using the Heiken Ashi in NT with a smoothing capability? I see the NT HA in V6.5 can be "displaced" but no way to "smooth" it.

                          Comment


                            #14
                            In the enclosed link ( http://www.ensignsoftware.com/tips/tradingtips57.htm ) you while find an Aroon Indicator article which has the very last chart image as the image I have included. Does anyone know what the very bottom indicator is showing (with the red .800 value and the blue .200 value)...it looks like what may be a "smoothed" Heikin Ashi or Average Bar. Anyone have any idea how this indicator is formated?
                            Attached Files

                            Comment


                              #15
                              Here is an additional link that talks about the Heikin Ashi "smoothed" with the perfect example from a MT4 forex platform chart image from a "Teed63" posting (post #4)........ http://forum.vtsystems.com/index.php...=0&#entry33944

                              "Teed63" has also included a .zip file for the indicator already in a MQL format (post #8). Maybe someone here can make heads or tails from the .zip file included programming for this indicator.
                              Attached Files

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by judysamnt7, 03-13-2023, 09:11 AM
                              4 responses
                              59 views
                              0 likes
                              Last Post DynamicTest  
                              Started by ScottWalsh, Today, 06:52 PM
                              4 responses
                              36 views
                              0 likes
                              Last Post ScottWalsh  
                              Started by olisav57, Today, 07:39 PM
                              0 responses
                              7 views
                              0 likes
                              Last Post olisav57  
                              Started by trilliantrader, Today, 03:01 PM
                              2 responses
                              21 views
                              0 likes
                              Last Post helpwanted  
                              Started by cre8able, Today, 07:24 PM
                              0 responses
                              10 views
                              0 likes
                              Last Post cre8able  
                              Working...
                              X