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

Information of current bar

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

    Information of current bar

    HI,

    if I am using Calculate = Calculate.OnEachTick;

    And try to Draw.Text(this, "tag1", "Current Close: "+Close[0], -5, Close[0], Brushes.White);

    This should print the current Close, but it prints the Close of the previous Bar. See attached picture to better understand what I mean. Close[0] should be 4003,00 instead of 4000,25 that is the Close [1] of previous bar.

    What am I doing wrong?. I mean, How can I always print the Close of the current Bar.

    Thanks

    Click image for larger version  Name:	imagen.png Views:	0 Size:	18.1 KB ID:	1226927

    #2
    Solved!. Forget the question please. Thanks

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Salahinho99, 05-05-2024, 04:13 AM
    4 responses
    46 views
    0 likes
    Last Post Salahinho99  
    Started by goodknight777, Today, 08:43 AM
    0 responses
    1 view
    0 likes
    Last Post goodknight777  
    Started by damethetrader, Today, 08:31 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by ttrader23, Yesterday, 09:04 AM
    6 responses
    28 views
    0 likes
    Last Post ttrader23  
    Started by reynoldsn, Today, 07:23 AM
    3 responses
    7 views
    1 like
    Last Post NinjaTrader_Gaby  
    Working...
    X