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

Remove historical plot executions

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

    Remove historical plot executions

    Hello,

    How can I clear the chart from historical plotting trades and executions?

    I know that I can set the plot execution mode to "DoNotPlot",.
    Using this mode will not delete the historical executions and trades.
    but I would like to clear the chart to be like it was before executions.

    Sincerely,Kobi

    #2
    Hello levikNT,

    Thank you for your post.

    Are you speaking of the historical trades plotted from the strategy when added to the chart?

    Can you attach a screenshot of your chart to your response?

    I look forward to your response.

    Comment


      #3
      Originally posted by NinjaTrader_PatrickH View Post
      Hello levikNT,

      Thank you for your post.

      Are you speaking of the historical trades plotted from the strategy when added to the chart?

      Can you attach a screenshot of your chart to your response?

      I look forward to your response.
      Hello PatrickH.

      Thank you for you response.

      Yes, I am speaking of the historical trades plotted from the strategy when added to the chart.

      See attach.

      Sincerely,Kobi

      Comment


        #4
        Hello levikNT,

        Thank you for your response.

        Unfortunately, adding the strategy to the chart will do this. You could alter the code to not process on historical data using if(Historical)return; at the beginning of the OnBarUpdate() but this will make backtesting not possible unless removed. Or more simply you can just add the strategy via the Strategies tab of the Control Center.

        For information on running the strategy from the Strategies tab of the Control Center please visit the following link: http://www.ninjatrader.com/support/h...t_strateg2.htm

        Please let me know if I may be of further assistance.

        Comment


          #5
          Originally posted by NinjaTrader_PatrickH View Post
          Hello levikNT,

          Thank you for your response.

          Unfortunately, adding the strategy to the chart will do this. You could alter the code to not process on historical data using if(Historical)return; at the beginning of the OnBarUpdate() but this will make backtesting not possible unless removed. Or more simply you can just add the strategy via the Strategies tab of the Control Center.

          For information on running the strategy from the Strategies tab of the Control Center please visit the following link: http://www.ninjatrader.com/support/h...t_strateg2.htm

          Please let me know if I may be of further assistance.
          Hello PatrickH,

          Thank you for your response.

          Is in NT 8 it will possible to delete historical traded from a chart that plotted from the strategy when added to the chart?

          Sincerely,Kobi

          Comment


            #6
            Hello levikNT,

            Thank you for your response.

            Setting the chart to DoNotPlot for PlotExecutions should disable the historical and real-time trades of the strategy. Can you attach a screenshot of your chart?

            Comment


              #7
              Hello PatrickH,

              Thank you for your response.
              Sorry, I should clarify myself I know that I can set the plot execution mode to "DoNotPlot",.
              Using this mode will not delete the historical executions and trades its only disable the Plot Executions.
              but I would like to clear the chart to be like it was before executions which means delete the historical executions and trades , as I wrote in the beginning of this thread.

              your response was :

              Unfortunately, adding the strategy to the chart will do this. You could alter the code to not process on historical data using if(Historical)return; at the beginning of the OnBarUpdate() but this will make backtesting not possible unless removed. Or more simply you can just add the strategy via the Strategies tab of the Control Center
              .

              My question Is in NT 8 is it will possible to delete historical traded from a chart?

              Sincerely,Kobi

              Comment


                #8
                Hello levikNT,

                Thanks for your reply.

                The only way to not have your NinjaScript strategy not plot historical trades that were not live in NinjaTrader 7 & 8 is to follow Patrick's step to not have the strategy run on historical data.
                BrandonNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by rocketman7, Today, 01:00 AM
                0 responses
                1 view
                0 likes
                Last Post rocketman7  
                Started by wzgy0920, 04-20-2024, 06:09 PM
                2 responses
                27 views
                0 likes
                Last Post wzgy0920  
                Started by wzgy0920, 02-22-2024, 01:11 AM
                5 responses
                32 views
                0 likes
                Last Post wzgy0920  
                Started by wzgy0920, 04-23-2024, 09:53 PM
                2 responses
                74 views
                0 likes
                Last Post wzgy0920  
                Started by Kensonprib, 04-28-2021, 10:11 AM
                5 responses
                193 views
                0 likes
                Last Post Hasadafa  
                Working...
                X