Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

last bar times

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

    last bar times

    I am designing a strategy operating on multiple instruments, it requires that the orders placed on both instruments are made simultaneously. What I want the condition to check for is to see if the time of the last bar of instrument A equals the time of the last bar of instrument B, otherwise do not enter the position. I have no idea where to start. A little help please

    #2
    Hello Chris001,

    Thank you for your post.

    The condition would be the following:
    Code:
    if(Times[0][0] == Times[1][0])
    For information on Times please visit the following link: http://www.ninjatrader.com/support/h.../nt7/times.htm
    For information on using multiple series in your code please visit the following link: http://www.ninjatrader.com/support/h...nstruments.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    648 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    369 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    572 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X