Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Emulate backtesting

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

    Emulate backtesting

    Hello, how to emulate ma cross trade system on historical data automatically?

    #2
    Use the builtin sample strategy SampleMACrossOver.
    Run it using Strategy Analyzer.

    Strategy Analyzer is a builtin "emulator" which uses historical data.

    Comment


      #3
      I need it to run automatically

      Comment


        #4
        It already does.

        Once you start it, the Strategy Analyzer runs automatically using the begin/end dates you specify.
        It will even automatically download missing historical data needed for the back test.

        Comment


          #5
          May be to explain in other words: I need to emulate trades on historical data, it looks like backtesting.

          Comment


            #6
            Ah, well, in that case, I don't know.

            If Strategy Analyzer isn't helpful to you, try looking here and here.

            Good luck!

            Comment


              #7
              My software developer used marketreplay to do this using one template, but he has dissapeared...

              Comment


                #8
                Are you wanting to show the execution of past historical trades directly on the chart?

                There is a setting that can show the execution markers.

                In NinjaTrader 8,
                Right-click in the chart, select Data Series.
                Scroll to bottom, change the 'Plot executions' setting.

                Comment


                  #9
                  But he did it to activate automatically

                  Comment


                    #10
                    The execution markers also plot automatically as trades happen.

                    Comment


                      #11
                      You could try running the SampleMACrossOver strategy on a chart while connected to Market Replay.

                      If the chart has Plot Executions is enabled, you'll see the trade executions plotted as they happen.

                      Comment


                        #12
                        I meaned next: he created strategy, which is running using historical data, and results of trading are refreshed with every new candle.

                        Comment


                          #13
                          Sorry, I'm all out of ideas.

                          Good luck!

                          Comment


                            #14
                            Hello U0000999,

                            Are you trying to start a backtest from code?
                            This would not be supported by NinjaTrader and I'm not aware of any unsupported code that can make that happen.

                            Or are you trying to recreate the strategy analyzer in an addon?
                            This would also be outside of what is supported by NinjaTrader Support, however, theoretically I don't see why you couldn't design your own analyzer that calculates performance based on entry and exit prices.

                            On a chart, you could just draw arrows where a theoretical entry or exit would be..

                            However, let me know if I am not understanding what you are trying to do.
                            Chelsea B.NinjaTrader Customer Service

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by traderqz, Yesterday, 09:06 AM
                            3 responses
                            20 views
                            0 likes
                            Last Post NinjaTrader_ThomasC  
                            Started by f.saeidi, Today, 10:19 AM
                            1 response
                            4 views
                            0 likes
                            Last Post NinjaTrader_BrandonH  
                            Started by kujista, Today, 06:23 AM
                            5 responses
                            15 views
                            0 likes
                            Last Post kujista
                            by kujista
                             
                            Started by traderqz, Today, 12:06 AM
                            3 responses
                            6 views
                            0 likes
                            Last Post NinjaTrader_Gaby  
                            Started by RideMe, 04-07-2024, 04:54 PM
                            5 responses
                            28 views
                            0 likes
                            Last Post NinjaTrader_BrandonH  
                            Working...
                            X