Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to calc on first tick of day

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

    How to calc on first tick of day

    Is this viable code?

    if(BarsInProgress == 1 && FirstBarOfSession)

    where BarsInProgress == 1 is a 1 tick series. Basically, I'm running a longer intraday minute series as the primary data series, but need to effect a calculation and order submission immediately after the first tick of the day.

    Seems like I need to tell the FirstBarOfSession statement which bar series I'm referring too.

    Thanks.

    #2
    Coolmoss,

    Yes, that would work.

    You could also just put the FirstBarOfSession in side of a block of BarsInProgress == 1.

    Code:
    If(BarsInProgress == 1)
    {
       if (FirstBarOfSession)
       // do sometihng
    }
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    59 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    281 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X