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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X