• 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

Stochastic Momentum Index (SMI) - colors

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

    Stochastic Momentum Index (SMI) - colors

    I'm fairly new to ninja coding but I"m trying. I've added a zero line to this indicator but I'm having trouble changing the SMI line from a constant green color to a "blue when rising, red when falling".

    I've attached the cs file below..

    I've looked at the code for samplemulticolorplot but when I try to adopt the same concept to this indicator, I'm messing something up.

    If this is simple to do, could someone please correct the code and repost it.

    Thanks,
    TC
    Attached Files

    #2
    try this one.
    Attached Files
    Last edited by nkhoi; 05-26-2009, 09:41 PM.

    Comment


      #3
      Thanks, NKHOI!

      That worked

      TC

      Comment


        #4
        On the SMI1, I want to add an up blue arrow when the SMI line crosses through the zero line and a down red arrow when the SMI line crosses down thru the zero line.

        Can someone show me how to do that?

        Thanks,
        TC

        Comment


          #5
          check out the cross zero line code here
          http://www.ninjatrader-support2.com/...t=15033&page=2

          Comment


            #6
            Thanks, Nkhoi..

            I've downloaded the trix indicator and looked at the code. Should I copy the drawarrow code sections into the SMI indicator that you helped me with and then substitute the name of my indicator for Trix?

            TC

            Comment


              #7
              Yes, try it. I copied the code from somewhere else I think you have to make sure the input parms are corrected.

              Comment


                #8
                TC,

                Nice job, I look forward to seeing more great stuff from you.

                Mike

                Comment


                  #9
                  See if this is what your looking for. I had Ben at affordable Indicators
                  put this together for me.
                  [email protected]
                  Attached Files

                  Comment


                    #10
                    Thanks, River!

                    Does this one color the candles based on SMI rising or falling?
                    Does this one plot blue arrows when it breaks above -40, etc?

                    Those are the things I'm trying to get done right now.

                    Todd

                    Comment


                      #11
                      Todd,
                      This is an SMI ind. that will plot in it's own panel. It has color color alert line
                      and you can change the crossing lines as you wish. It also has up and down directional arrows and an alert signal. It will not change candle colors.
                      I changed the alert lines to + and - 1.5 and was using the indicator for trend verification.
                      Hope this helps

                      Comment


                        #12
                        Nice Indicator!

                        Comment


                          #13
                          SMI with Alerts 1195

                          I have been using this indicator, and like it. But, I'm not really sure what it is doing. The SMI index formula is usually, "SMI(q,r,s) = 100 * (EMA(EMA(SM[q])[r]))[s] / 0,5*(EMA(EMA(HighestHigh[q]-LowestLow[q])[r])[s])

                          This is a fairly common momentum oscillator type of formula. But what is the SMI_1195 doing? I'm not good at reading the code to figure it out. Can anyone help?

                          Comment


                            #14
                            Can someone help anD post link for stochastic momentum index for NT8 please. What I got is an older version

                            Comment


                              #15
                              Hello mkaraa,

                              Thank you for your post.

                              Glad to assist. Below is a publicly available link to the indicator sharing section of the NinjaTrader Ecosystem where custom items are now stored, I would suggest looking through there for what you're looking for. I did attempt to find an options to accomplish this but was unsuccessful, so also feel free to post in order to get feedback or custom suggestions from other users on our forum as well.

                              https://ninjatraderecosystem.com/

                              If you are a programmer, our NinjaScript team may provide you links to samples which would help you write the indicator yourself, or I can have someone reach out with a list of third parties that would be interested in building this for you.

                              Please let us know if you need further assistance.
                              Eric B.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by Botan626, Today, 04:43 AM
                              0 responses
                              4 views
                              0 likes
                              Last Post Botan626  
                              Started by xsgex, Yesterday, 09:46 PM
                              0 responses
                              3 views
                              0 likes
                              Last Post xsgex
                              by xsgex
                               
                              Started by Steve L, Yesterday, 09:36 PM
                              0 responses
                              6 views
                              0 likes
                              Last Post Steve L
                              by Steve L
                               
                              Started by krugman25, Yesterday, 09:34 PM
                              0 responses
                              4 views
                              0 likes
                              Last Post krugman25  
                              Started by indy73, Yesterday, 04:42 PM
                              0 responses
                              15 views
                              0 likes
                              Last Post indy73
                              by indy73
                               
                              Working...
                              X