Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Capturing all attributes from previously formed bar

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

    Capturing all attributes from previously formed bar

    Can you kindly show me the NT documentation on bar value capturing?
    I'm looking to capture all values.......not just the high/low/open/close.

    I'm talking about the symbol, the contract month, the contract year (if its a future).
    For example if I'm trading Oil futures, I want to capture the following and send to an excel file (or any file output):
    -symbol name CL 03-14 (Crude oil, March 2014 contract)
    -high of the previous formed bar (98.50, for example)
    -low of the previous formed bar (98.25, for example)

    so the following values would be sent to my output file:

    CL 03-14
    98.50
    98.25

    Please let me know where I can find such documentation on capturing and referencing previously formed bars.

    Thank you.

    #2
    Hello Theitpro,

    Thank you for your post.

    You can use Instrument.FullName to give the strings full name of the instrument including contract.

    Additionally, to get the previous bars values you will need to reference a 1 in the bat index value

    High[1], Close[1], Open[1], Low[1]

    http://www.ninjatrader.com/support/h...t_fullname.htm
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    558 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X