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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    117 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    166 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    85 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    130 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    88 views
    0 likes
    Last Post PaulMohn  
    Working...
    X