Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

why does not Bars.FirstBarOfSession not fired

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

    why does not Bars.FirstBarOfSession not fired

    protectedoverridevoid OnBarUpdate()
    {
    if (Historical){
    Print(
    "in historical");
    return;
    }

    if(Bars.FirstBarOfSession )
    {
    Print(
    "in FirstTickOfstrategy");
    }

    the FirstTickOfstrategy is not getting fired.

    #2
    Hi junkone, which chart session time have you defined? Please make sure to enable the strategy before the first bar of the session starts building.

    Comment


      #3
      how do you define session?
      1. on connection with IB
      2. when chart loads up with ib session
      3. when the stretegy starts

      Comment


        #4
        Double click on your chart and you define your session there. Any strategy thrown onto that chart will use the chart session you have defined.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        61 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X