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 AveryFlynn, Today, 04:57 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Erick  
        Started by Max238, Today, 01:28 AM
        4 responses
        37 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by r68cervera, Today, 05:29 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by geddyisodin, Today, 05:20 AM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by timko, Today, 06:45 AM
        2 responses
        14 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X