Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error on calling 'OnBarUpdate method for strategy

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

    Error on calling 'OnBarUpdate method for strategy

    Hi,

    My code was essentially making good progress until I wanted to add smaller timeframes so that I can exitonclose as near to the close as possible as I am using hourly bars and CalculateOnBarClose = false;

    After adding the smaller timeframe, I've added "BarsInProgress" to my code as well. I'm getting this error message "You must use the overload that has a "BarsInProgress" parameter when calling the BarsSinceEntry() method in the context of a multi-time frame and instrument strategy"..

    What does that mean?

    Regards

    Kay Wai
    Last edited by kaywai; 06-23-2011, 07:49 AM. Reason: discovered additional information

    #2
    Kay, please use this BarsSinceEntry overload if you're working in MultiSeries strategies :

    BarsSinceEntry(int barsInProgressIndex, string signalName, int entriesAgo)

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    651 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
    577 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X