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

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 terofs, Yesterday, 04:18 PM
              1 response
              21 views
              0 likes
              Last Post terofs
              by terofs
               
              Started by CommonWhale, Today, 09:55 AM
              1 response
              3 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by Gerik, Today, 09:40 AM
              2 responses
              7 views
              0 likes
              Last Post Gerik
              by Gerik
               
              Started by RookieTrader, Today, 09:37 AM
              2 responses
              13 views
              0 likes
              Last Post RookieTrader  
              Started by alifarahani, Today, 09:40 AM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Working...
              X