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 Segwin, 05-07-2018, 02:15 PM
                      14 responses
                      1,788 views
                      0 likes
                      Last Post aligator  
                      Started by Jimmyk, 01-26-2018, 05:19 AM
                      6 responses
                      837 views
                      0 likes
                      Last Post emuns
                      by emuns
                       
                      Started by jxs_xrj, 01-12-2020, 09:49 AM
                      6 responses
                      3,293 views
                      1 like
                      Last Post jgualdronc  
                      Started by Touch-Ups, Today, 10:36 AM
                      0 responses
                      13 views
                      0 likes
                      Last Post Touch-Ups  
                      Started by geddyisodin, 04-25-2024, 05:20 AM
                      11 responses
                      63 views
                      0 likes
                      Last Post halgo_boulder  
                      Working...
                      X