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

    #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 andrewtrades, Today, 04:57 PM
                1 response
                8 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Started by chbruno, Today, 04:10 PM
                0 responses
                6 views
                0 likes
                Last Post chbruno
                by chbruno
                 
                Started by josh18955, 03-25-2023, 11:16 AM
                6 responses
                436 views
                0 likes
                Last Post Delerium  
                Started by FAQtrader, Today, 03:35 PM
                0 responses
                7 views
                0 likes
                Last Post FAQtrader  
                Started by rocketman7, Today, 09:41 AM
                5 responses
                19 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X