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 cmoran13, 04-16-2026, 01:02 PM
                0 responses
                46 views
                0 likes
                Last Post cmoran13  
                Started by PaulMohn, 04-10-2026, 11:11 AM
                0 responses
                28 views
                0 likes
                Last Post PaulMohn  
                Started by CarlTrading, 03-31-2026, 09:41 PM
                1 response
                163 views
                1 like
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                98 views
                1 like
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                158 views
                2 likes
                Last Post CaptainJack  
                Working...
                X