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 arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Started by samish18, 04-17-2024, 08:57 AM
    16 responses
    61 views
    0 likes
    Last Post samish18  
    Started by jordanq2, Today, 03:10 PM
    2 responses
    9 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    18 views
    0 likes
    Last Post traderqz  
    Started by algospoke, 04-17-2024, 06:40 PM
    5 responses
    48 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X