Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy running on history data...

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

    Strategy running on history data...

    Hi,
    I am running a strategy I wrote,
    On loading the strategy' it runs on some set of history.
    If I put this text at the beginning:

    protectedoverridevoid OnBarUpdate()
    {
    Print("Loop counter " + loopCounter++);
    }

    I get a set of execution and it shows some 15000 lines on the output screen, while all I am interested in is running it starting now (current bar)

    Background:
    I am running it on a 1 Min Bar on a EURUSD using IB as broker.

    Btw: how do I clear the content of the Output windows

    Please help
    Shimon Dekel

    #2
    If you do not care about historical bars, add this to the top of OnBarUpdate():
    Code:
    if (Historical)
         return;
    To clear the output window you can right click -> Clear.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    94 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    49 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    70 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X