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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    59 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    143 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    161 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X