Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

bars since new trading day - no effect

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

    bars since new trading day - no effect

    Hi,
    Why doesn't this work? It always buys on the second bar instead of waiting for 7 bars since new trading day.

    if (Bars.BarsSinceNewTradingDay >= 7);

    {
    EnterLong(Convert.ToInt32(DefaultQuantity), "");
    }​
    Attached Files

    #2
    Do you have multiple Bars objects in your strategy ? I ask this because the 7th bar in a 1-min chart is the 2nd bar in the 5-min chart.

    Comment


      #3
      no, but thanks for mentioning that. I understand BarsInProgress better now. It's a bit misleading at first glance

      Comment


        #4
        i got it to work. not sure why. have a good one

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        135 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        69 views
        0 likes
        Last Post PaulMohn  
        Working...
        X