Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript Documentation

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

    NinjaScript Documentation

    Is there a documentation available online for the libraries that are offered so it is possible to write NinjaScripts ??

    In the stochastic indicator the last value is displayed for the closed bar, and I want to change so that it will compute/display the value for the current bar, the real time value
    Last edited by acmarius83; 01-11-2012, 10:52 AM.

    #2
    acmarius,

    I am happy to assist you.

    Here is a link to our help guide with NinjaScript resources : http://www.ninjatrader.com/support/h...nt7/index.html

    Here is a link to reference samples on coding various things : http://www.ninjatrader.com/support/f...splay.php?f=30

    You would want to set CalculateOnBarClose = false to get the "real-time" value of indicators.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      this means that I have to modify this :
      Stochastics indicator = new Stochastics();
      indicator.BarsRequired = BarsRequired;
      >> indicator.CalculateOnBarClose = CalculateOnBarClose;

      into this:
      Stochastics indicator = new Stochastics();
      indicator.BarsRequired = BarsRequired;
      >> indicator.CalculateOnBarClose = false;

      am I write?

      Comment


        #4
        acmarius,

        Yes, but you don't need the barsrequired part. You could create your own stochastics with it having its CalculateOnBarClose = false; by default.

        Please let me know if I may assist further.
        Adam P.NinjaTrader Customer Service

        Comment


          #5
          i modified in the original stochastic indicator that comes whit nt7 like this...
          Stochastics indicator = new Stochastics();
          // indicator.BarsRequired = BarsRequired;
          indicator.CalculateOnBarClose = false;

          it is not working .......

          Comment


            #6
            acmarius,

            I would recommend just creating a Stochastics indicator with CalculateOnBarClose = false in its Initialize() method. You will also want CalculateOnBarClose to be false in your indicator/strategy calling it.

            You can then access it as follows : Stochastics_My(periodk,periodd,smooth)[X]

            Please let me know if I may assist further.
            Adam P.NinjaTrader Customer Service

            Comment


              #7
              thank you for help

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              576 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              334 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X