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

Last Historical Bar?

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

    #16
    Originally posted by ninZa View Post
    My skill is googling Koganam lol.

    Regarding your comment about the dependence on COBC, should we reverse the order? I mean the 1st one (ChartControl) should be absolute, and the 2nd one is dependent on COBC?
    Could be, but I am pretty sure that what I wrote is correct.

    Comment


      #17
      Originally posted by koganam View Post
      Could be, but I am pretty sure that what I wrote is correct.
      Please check it Koganam.

      Yesterday I played with both of them. Changing COBC to false increased the value of LastBarIndexPainted by 1 (for the actual last bar on chart). So LastBarIndexPainted is dependent on COBC.

      Just from the logic, we can also tell that a thing related to ChartControl (ChartControl.LastBarPainted) cannot be dependent on COBC.
      ninZa
      NinjaTrader Ecosystem Vendor - ninZa.co

      Comment


        #18
        Originally posted by ninZa View Post
        Please check it Koganam.

        Yesterday I played with both of them. Changing COBC to false increased the value of LastBarIndexPainted by 1 (for the actual last bar on chart). So LastBarIndexPainted is dependent on COBC.

        Just from the logic, we can also tell that a thing related to ChartControl (ChartControl.LastBarPainted) cannot be dependent on COBC.
        Granted the truth of what you are saying if the CurrentBar is the last bar being displayed on the chart, I was answering the thrust of the original question, which wanted to know the index of the "last bar showing on the right" if the chart was somewhere in the middle. Given that, I did not go into the niceties of what happens in the edge state, as that is not what the original question was about.

        This question: http://www.ninjatrader.com/support/f...90&postcount=6

        Put the display into "threaded" mode, and you will see that that is the question to which I was responding.
        Last edited by koganam; 02-04-2015, 09:44 PM.

        Comment


          #19
          I see. Your answer was tied to the scenario in the asked question.

          By the way, what is the meaning of Osikani? Can you explain it to all the people here.

          Thank you Koganam.
          ninZa
          NinjaTrader Ecosystem Vendor - ninZa.co

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by thanajo, 05-04-2021, 02:11 AM
          4 responses
          470 views
          0 likes
          Last Post tradingnasdaqprueba  
          Started by aa731, Today, 02:54 AM
          0 responses
          4 views
          0 likes
          Last Post aa731
          by aa731
           
          Started by Christopher_R, Today, 12:29 AM
          0 responses
          10 views
          0 likes
          Last Post Christopher_R  
          Started by sidlercom80, 10-28-2023, 08:49 AM
          166 responses
          2,237 views
          0 likes
          Last Post sidlercom80  
          Started by thread, Yesterday, 11:58 PM
          0 responses
          6 views
          0 likes
          Last Post thread
          by thread
           
          Working...
          X