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

Double Stochastics Mod "with trigger line"

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

    Double Stochastics Mod "with trigger line"

    Anyone know about a Double Stochastics "with trigger line"?

    Was in a chat room last week and was able to use the Double Stochastics Mod (submitted by glenng) to replicate the indicator, but their indicator did a color change based off of a trigger line.

    Does anyone has this coded?

    Thanks

    #2
    phoenix,

    Generally what is available is in the File Sharing section of the forums. If it is not there then you can also try one of these 3rd party NinjaScript Consultants along with seeing if any community member is willing to program it for you: http://www.ninjatrader.com/webnew/pa...injaScript.htm
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks Josh,

      Did some research and found it can be programmed as a SMA onto the the DStochMod with a color change on crossover, up/down color,

      or,

      as a three color (up/down/neutral) re: last bar.

      I spent most of yesterday and today looking at NinjaScript, and my first question is, can the DStochMod script be modified to do this, or does the DStochMod have to be called into a new indicator.

      Thanks

      Comment


        #4
        phoenix, you can add it directly in the DS code, just let it run on the K dataseries...I did this a while ago for myself, attached the code...
        Attached Files
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          phoenix, you can add it directly in the DS code, just let it run on the K dataseries...I did this a while ago for myself, attached the code...
          Thanks NT_Bertrand. LOL Adding the SMA with one short line.

          Hopefully will have this done today.

          Will post when it is done (is there a waiting period b4 a rookie can post onto the Indicator section?).

          Comment


            #6
            There is no waiting period.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              There is no waiting period.

              Thanks. (8,9,10 characters)

              Comment


                #8
                Finally got it to compile, but really not sure where the error is.

                Click image for larger version

Name:	ES 12-09  9_25_2009 (810 Tick).jpg
Views:	1
Size:	81.5 KB
ID:	853041

                The end result I am looking for is in panel 2, except color-coded - up/down/neutral.

                Instead, ended up with panel 3.

                Attached is the file, thanks for any help.

                phoenix

                Comment


                  #9
                  Hello,

                  Jumping in here but are you trying to get a multicolor plot:
                  DenNinjaTrader Customer Service

                  Comment


                    #10
                    NT Ben,

                    Yes, 'borrowed' the 'mutlicolor' code from a Mutlicolor EMA.

                    Before I added the 'multicolor' coding, the DStoch coding plotted correctly.

                    After adding the 'multicolor' coding, the indicator started to plot as a two-state (above/below) indicator.

                    I am totally new to coding, so thanks for any help.

                    phoenix

                    Comment


                      #11
                      If there is anyone that can look at the code on this? This is the first time I have done any programming since taking Basic and Fortran back in '84.

                      Been working on this all weekend.

                      It is plotting the 'Rising' line continuously. I set the 'Falling' line width to 10, so you can see it is plotting correctly.

                      My guess is the issue is in the

                      "region Properties",
                      "get { return Values(x); },

                      the only way I can get it to plot at all is to set both the DataSeries K and DataSeries RisingPlot to "0".

                      Thanks for any help.
                      Attached Files
                      Last edited by phoenix; 09-27-2009, 07:16 PM. Reason: Additional Info

                      Comment


                        #12
                        phoenix,

                        You need to stop calling .Set for the rising plot the moment you start calling it for the falling plot.
                        Josh P.NinjaTrader Customer Service

                        Comment


                          #13
                          Thanks, will let you know.

                          Comment


                            #14
                            Josh,

                            As a template, I am using the Multicolor SMA, and I do not see the code to stop calling .Set, could you post a sample line?

                            Comment


                              #15
                              plotName.Set(someValue);
                              Josh P.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by algospoke, 04-17-2024, 06:40 PM
                              6 responses
                              48 views
                              0 likes
                              Last Post algospoke  
                              Started by arvidvanstaey, Today, 02:19 PM
                              4 responses
                              11 views
                              0 likes
                              Last Post arvidvanstaey  
                              Started by samish18, 04-17-2024, 08:57 AM
                              16 responses
                              61 views
                              0 likes
                              Last Post samish18  
                              Started by jordanq2, Today, 03:10 PM
                              2 responses
                              9 views
                              0 likes
                              Last Post jordanq2  
                              Started by traderqz, Today, 12:06 AM
                              10 responses
                              19 views
                              0 likes
                              Last Post traderqz  
                              Working...
                              X