Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Double Stochastics Mod "with trigger line"

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

    #16
    NT Josh,

    The syntax I have programmed is (from the MulticolorSMA) is

    if (Rising (K));
    {
    RisingPlot.Set (1, K[1]);
    RisingPlot.Set (K[0]);
    }

    And this is repeated for the Falling and Neutral.

    The Falling plots okay, but the Rising plots continuous.


    Working with the 'regions Properties' (changing 'x' value)

    { return Values [x]; }

    I was able to get the RisingPlot and FallingPlot to plot correctly (so long as 'DataSeries K' value was set to '0') , but it ALWAYS plots the continuous line.

    phoenix

    Comment


      #17
      Your problem is with this:

      [Browsable(false)] // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
      [XmlIgnore()] // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove

      public DataSeries K
      {
      get { return Values[0]; }
      }

      You should not have this as a public DataSeries. Make it a custom series just like your p1, p2 ones.
      Josh P.NinjaTrader Customer Service

      Comment


        #18
        NT Josh,

        Eureka!!!

        Thanks for your help (and patience).

        Attached is the working version. Will post to Indicators after paintbars are added.

        phoenix
        Last edited by phoenix; 09-28-2009, 12:02 PM.

        Comment


          #19
          Paintbars added.
          Attached Files

          Comment


            #20
            I was wondering if anyone could help me add a signal to this Indicator?

            The signal would be a +1 when it crosses up through 20 and is Rising or Blue; and a -1 if it crosses down below 80 and is falling or Red?

            Is this possible?

            thanks -

            Comment


              #21
              Hello swhitcomb,

              Welcome to the NinjaTrader forums! Yes this is possible in NinjaScript. If no one offers to make these modifications for you, you may consider a 3rd party NinjaScript consultant. Complete list is below:
              Ryan M.NinjaTrader Customer Service

              Comment


                #22
                Not sure what you mean by a +1/-1 signal. It is easy to add an arrow or diamond with crossabove/crossbelow logic, either on the indicator panel or on the price chart.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                0 responses
                606 views
                0 likes
                Last Post Geovanny Suaza  
                Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                0 responses
                353 views
                1 like
                Last Post Geovanny Suaza  
                Started by Mindset, 02-09-2026, 11:44 AM
                0 responses
                105 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                0 responses
                560 views
                1 like
                Last Post Geovanny Suaza  
                Started by RFrosty, 01-28-2026, 06:49 PM
                0 responses
                561 views
                1 like
                Last Post RFrosty
                by RFrosty
                 
                Working...
                X