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 sjsj2732, Yesterday, 04:31 AM
    0 responses
    28 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    284 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    281 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    132 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    90 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X