Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Simple indicator to add color between to EMA

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

    Simple indicator to add color between to EMA

    Hi,
    is there any indicator that will add color between 2 EMA ?
    Of course it has to be eithe transparent, or behind price and other indicators.

    You know like the cloud of ichimoku indicator..... but with 2 ema.

    Thanks,
    Duval

    #2
    Hi Duval,

    This is possible with DrawRegion(). There is a sample that can show you how to use it available here:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks, indeed it shows it can be done, but I looked into the code, and for someone that is not a programmer, it is simply impossible to convert to using only 2 emas....

      Is there no already existing code ?

      Comment


        #4
        Here you go Duval -- it's called "Slingshot":

        Comment


          #5
          I'm not aware of an indicator that does exactly this. I had an example close to this and modified for EMA and attached here.

          Since we don't normally provide custom coding services, I'm sure you can understand that no additional support is available for this script. If you would like to see it customized further, please consider a NinjaScript consultant for this.
          Attached Files
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            Thanks a lot, I really appreciate.
            Only thing missing is that we can't set color for the filling.... but thanks again I appreciate.

            Comment


              #7
              Originally posted by Duval View Post
              Thanks a lot, I really appreciate.
              Only thing missing is that we can't set color for the filling.... but thanks again I appreciate.
              You can set the color for the indicator I provided (Slingshot). You actually set two colors: one for when the lower period MA is above the higher period MA, and another for when the inverse is true.

              Comment


                #8
                Tks mrpowerball I didn't saw your post

                Comment


                  #9
                  Slingshot Error after modification

                  Hi,

                  I added ZeroLagEMA and ADXVMA to the slingshot script and it compiled fine, but after applying it to the chart with the original default matypes it works great. If i change the ma type to either ZerolagEMA or ADXVMA the price data is getting squeezed if i move the chart to the left and all price action is seen as a single line at the top as you can see in the attachment. Can some one explain where i did wrong?

                  Thank you,
                  SC.


                  EDIT: I noticed that it is happening when i had Calculate on Bar Close set to "False"

                  Attached Files

                  Comment


                    #10
                    Hi bhavaanii,

                    It may be that it's not designed to run with CalculateOnBarClose = false. We unfortunately do not provide support for third party scripts here. If you can PM the author, it may be best way to find out what is happening with it.
                    Ryan M.NinjaTrader Customer Service

                    Comment


                      #11
                      Hello,
                      do you mean somewhat like this ?
                      Attached Files

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by judysamnt7, 03-13-2023, 09:11 AM
                      4 responses
                      55 views
                      0 likes
                      Last Post DynamicTest  
                      Started by ScottWalsh, Today, 06:52 PM
                      4 responses
                      35 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
                      19 views
                      0 likes
                      Last Post helpwanted  
                      Started by cre8able, Today, 07:24 PM
                      0 responses
                      7 views
                      0 likes
                      Last Post cre8able  
                      Working...
                      X