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 elirion, Today, 01:36 AM
                2 responses
                12 views
                0 likes
                Last Post elirion
                by elirion
                 
                Started by DJ888, 04-16-2024, 06:09 PM
                5 responses
                14 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by samish18, Yesterday, 08:31 AM
                4 responses
                14 views
                0 likes
                Last Post elirion
                by elirion
                 
                Started by funk10101, Yesterday, 09:43 PM
                1 response
                14 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                5 responses
                551 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Working...
                X