Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Price Value of Current Tick

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

    Price Value of Current Tick

    Dear Sir,

    Has a very simple question. how to access the price value of current tick?

    Thanks.
    Tiffany

    #2
    It would be Close[0], however this will only work if COBC = false; for (hopefully) obvious reasons

    Comment


      #3
      Price of Current Tick

      What's COBC? Sorry, I'm new to Ninja Script.

      Thanks.

      Tiffany

      Comment


        #4
        COBC stands for calculate on bar close. This is one of the setup parameters for indicators. If you're new to Ninjascript it would be extremely beneficial to first study the educational material available. It will save you a ton of time in the end. I would start here:



        You'll find basic programming technique, step by step tutorials, and a complete reference for all key words and commands.

        Comment


          #5
          Hello tiffanychan887,

          Thank you for your post and thanks to coolmoss for the information here!

          CalculateOnBarClose is always true for historical data (that includes backtesting). However, on real-time data you can set CalculateOnBarClose to false to update your calculations on each incoming tick and to send your orders to the tick rather than on the close of the bar.

          For information on CalculateOnBarClose please visit the following link: http://www.ninjatrader.com/support/h...onbarclose.htm

          Please let me know if I may be of further assistance.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CaptainJack, 05-29-2026, 05:09 AM
          0 responses
          51 views
          0 likes
          Last Post CaptainJack  
          Started by CaptainJack, 05-29-2026, 12:02 AM
          0 responses
          30 views
          0 likes
          Last Post CaptainJack  
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          99 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          177 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          170 views
          0 likes
          Last Post CarlTrading  
          Working...
          X