Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with BarsInProgress

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

    Problem with BarsInProgress

    Hello,
    I am seeing a problem with the usage of BarsInProgress -
    for some reason , the BarsInProgress=2 [pointing to daily data] is not executed.
    I am using the simulated data feed on a 5 min chart.

    I have added a small reference code that fails.
    what am I missing ?
    Thanks,
    Lior
    Attached Files

    #2
    Hello Leope,

    Thanks for your post.

    When applied to a chart with 5 days of 1-minute historical data your code is printing:

    5/30/2018 3:00:00 PMNQ BRP 2
    5/31/2018 3:00:00 PMNQ BRP 2
    6/1/2018 3:00:00 PMNQ BRP 2

    With Calculate.OnBarClose, you would not see a print until the day bar had closed. If you use Calculate.OnPriceChange or Calculate.OnEachTick then you would see intrabar prints of the BarsInProgress 2.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    53 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    33 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    94 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    56 views
    0 likes
    Last Post PaulMohn  
    Working...
    X