In mql4, the far right of the chart is bar 0, and I have found [in the ninja tutorial/reference material] that Ninja tracks with bar 0 on the far right side. I can write a routine to track this correctly, but the necessary info still escapes me at this time. You see, in mql4, I canuse the "Bars" command to tell me how many bars are on the chart. The closest I can find in NinjaScript is the "CurrentBar" command. If I understand it correctly though, this does not tell me how many bars are on the chart, but only if the position of the current bar being referenced based on the far left side count up from zero progressing toward the right.
So, there is what I need to know to resolve my problem. How do I find out what the bar number is for the most current bar [far right side]? If I can at least figure out how to get this information, I can define the rest to make my current code compatible.
Thank you for the help in advance!
Comment