Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Turning off strategy analyzer

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

    Turning off strategy analyzer

    Hi

    Is there a way to turn off the historical (theoretical) results for a strategy so that I only see trades made by it in real time?

    John

    #2
    Hi Jetpilotjohn,

    Thank you for posting.

    There are two ways that you can set this up.
    The first is to have this line of code in the beginning of the OnBarUpdate() Method-
    Code:
    if(Historical)
    return;
    This will ignore all historical data and will not show up in the strategy performance.

    Alternatively, you can right click on the chart -> Strategy Performance -> Strategy name -> Real-Time

    This will bring up a performance window with only the real-time results.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Its not actually a window. What I want to turn off is the theoretical trades being painted on the chart so that the only trades painted are the ones taken in real time

      Comment


        #4
        Jetpilotjohn,

        You will need to add -
        Code:
        if(Historical)
        return;
        to the OnBarUpdate() method, in order for the performance to ignore the historical trades and data.

        Let me know if I can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        5 responses
        3,290 views
        1 like
        Last Post jgualdronc  
        Started by Touch-Ups, Today, 10:36 AM
        0 responses
        6 views
        0 likes
        Last Post Touch-Ups  
        Started by geddyisodin, 04-25-2024, 05:20 AM
        8 responses
        61 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by Option Whisperer, Today, 09:55 AM
        0 responses
        7 views
        0 likes
        Last Post Option Whisperer  
        Started by halgo_boulder, 04-20-2024, 08:44 AM
        2 responses
        24 views
        0 likes
        Last Post halgo_boulder  
        Working...
        X