Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bars.FirstBarOfSession

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

    Bars.FirstBarOfSession

    I am trying to attach a Live Strategy to a chart and want to take certain actions on:

    if (Bars.FirstBarOfSession && CurrentBar > 0)
    {

    }


    This condition never seems to be satisfied even when a new session bar is formed. I am using ES futures so would expect this to be satisfied 1 time each day around 5:15 CET or something.

    Please advice.

    #2
    Hello Newworldguy,

    Thank you for your post.

    Do you have anything inside of the statement?

    If you add in Print("First bar of session"); do you see prints coming to the Output window?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      of course i did that and no prints :=(

      Comment


        #4
        Newworldguy,

        How many days of data are you loading?

        What time interval are you running this script on?

        Can you attach your script that you are using?
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          I am running 1 minute for 3 days

          Comment


            #6
            Newworldguy,

            I would like you to try two items.

            First, ensure you are connected to your connection

            Second, can you just run a basic script with only the condition and have it print Hello when true
            if(Bars.FirstBarOfSession && CurrentBar > 0)
            Print("hello");
            Cal H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            656 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            370 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            109 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            574 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            578 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X