Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Disable historical order execution

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

    Disable historical order execution

    Hello, how can I disable historical order execution for the strategy ?

    #2
    Hello Uregon,

    Thank you for posting.

    To clarify are you referring the order executions displayed within the chart panel? If so to remove this information right click in your chart->Data Series->Select "Do no plot" from the Plot executions drop down menu then click Ok.

    Let me know if I may be of further assistance.
    Christopher J.NinjaTrader Customer Service

    Comment


      #3
      The issue is, that my strategy should only enter if realized pnl is 0

      But the system also count orders in historical execution, so its always not 0

      I hope you know what I mean

      Comment


        #4
        Hello Uregon,

        I've moved this thread from the NinjaTrader 7 > Platform Technical Support section of the forums to the NinjaTrader 7 > Strategy Development section of the forums as this pertains to strategy development on NinjaTrader 7.

        To prevent historical trades with NinjaTrader 7 add to the top of the OnBarUpdate() action block:

        if (Historical)
        return;

        Below is a link to the help guide.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by oneybuchi2, Today, 03:48 PM
        0 responses
        5 views
        0 likes
        Last Post oneybuchi2  
        Started by Graci117, 06-19-2024, 01:39 PM
        6 responses
        53 views
        0 likes
        Last Post Graci117  
        Started by farawayz, Today, 01:20 PM
        0 responses
        11 views
        0 likes
        Last Post farawayz  
        Started by rjm1903, Today, 01:10 PM
        0 responses
        6 views
        0 likes
        Last Post rjm1903
        by rjm1903
         
        Started by AH369, 06-21-2024, 11:09 AM
        3 responses
        21 views
        0 likes
        Last Post AH369
        by AH369
         
        Working...
        X