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 kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        60 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        43 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        47 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        38 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X