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 AaronKTradingForum, Today, 03:44 PM
                            0 responses
                            1 view
                            0 likes
                            Last Post AaronKTradingForum  
                            Started by Felix Reichert, 04-26-2024, 02:12 PM
                            11 responses
                            72 views
                            0 likes
                            Last Post Felix Reichert  
                            Started by junkone, 04-28-2024, 02:19 PM
                            7 responses
                            82 views
                            1 like
                            Last Post junkone
                            by junkone
                             
                            Started by pechtri, 06-22-2023, 02:31 AM
                            11 responses
                            136 views
                            0 likes
                            Last Post Nyman
                            by Nyman
                             
                            Started by ageeholdings, 05-01-2024, 05:22 AM
                            4 responses
                            27 views
                            0 likes
                            Last Post ageeholdings  
                            Working...
                            X