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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    169 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    327 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    252 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    353 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    181 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X