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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    65 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    59 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    51 views
    0 likes
    Last Post CarlTrading  
    Working...
    X