Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Trades not staying on the Chart

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

    Strategy Trades not staying on the Chart

    Hi,
    I am backtesting a strategy on market replay, and when the trade is active it shows on the chart, but it doesn't stay on the chart so I can look back at them.
    Thanks
    Adam

    #2
    Hello Adam,

    I understand that you are running a script in real-time on a chart with Playback. (Backtest is historical data in the Strategy Analyzer)

    When disconnecting from the Playback, or when adjusting the time of the playback this will reset the playback account.

    May I confirm you are not disconnecting from the Playback connection or adjusting the time and that the strategy is still enabled?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Sorry yes I am on the playback and not disconnecting from it. Im not using the analyzer.

      Comment


        #4
        Hello Adam,

        May I confirm you have not adjusted the playback time (such as rewinding it).

        Is the strategy still enabled?

        Do you see the executions on the Executions tab of the Control Center?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          The strategy is still enabled and yes they show up on the exuctuions tab. What do you mean by rewinding it? It set back in time, but do you mean have I rewound it while its going right now?

          Comment


            #6
            Hello Adam,

            I'm referring to the slider on the Playback controller. If this is slid to the left, the playback account is reset.
            However, this would mean the executions would not be shown on the executions tab of the Control Center.

            To confirm, the executions are made by the strategy using regular order methods (and not through the addon approach or atm strategy methods)?

            May I have a screenshot of the executions tab and a screenshot of the chart?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              I have reset it and still the same, but here's the screen shots which it took 2 trades. Click image for larger version

Name:	Executions.png
Views:	37
Size:	186.7 KB
ID:	1312361
              Click image for larger version

Name:	Chart.png
Views:	41
Size:	515.0 KB
ID:	1312362

              Comment


                #8
                Hello Clevchin,

                This may be the wrong chart. The strategy on this chart is disabled (noted by the (D) before the strategy name), which would mean you would not be able to see the executions unless the strategy is removed from the chart.

                Which chart has the strategy that was never disabled?
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  Sorry I had two stratgies listed in my settings with one enabled and disabled. I only have the enabled one on now. Click image for larger version

Name:	Chart.png
Views:	41
Size:	655.0 KB
ID:	1312365

                  Comment


                    #10
                    Hello Clevchin,

                    It looks like the playback slider is all the way to left. Did you disconnect and reconnect or slide the slider to the left?

                    Are you certain this is the strategy instance that placed the orders?

                    Do you see the executions in the Strategy Performance > ApexPsStrategy > Realtime > Executions display?
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Its placing orders no with it being the only one active right now, but I do not see the executions in the Strategy Performance > ApexPsStrategy > Realtime > Executions display

                      Comment


                        #12
                        Hello Clevchin,

                        If there are no executions in the Strategy Performance window, this strategy has not placed any orders that have filled yet.

                        You will need to run through the playback again. Then don't disable the strategy or adjust the playback time and the executions will remain on the chart.

                        If you want to save the executions, you can save the grid contents of the Strategy Performance window Executions display.
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          ok i just disconnected and reconnected to the the playback connection and enabled the strategy without touching the playback bar and now I'm rerunning the test but it did the same thing with the first 2 trades. does it matter the speed i run the playback on?

                          Comment


                            #14
                            Does it matter that the trade sl and tp are set with an atm setup and not right in the strategy?

                            Comment


                              #15
                              Hello Clevchin,

                              I had inquiried if the orders were being submitted through the addon approach or with Atm strategy methods in post # 6 but did not receive information in your reply.

                              Orders submitted through an Account or with Atm strategy methods are not seen by the strategy and will not appear on the chart while a NinjaScript strategy is on the chart.

                              "Executions from ATM Strategies will not have an impact on the hosting NinjaScript strategy position and PnL - the NinjaScript strategy hands off the execution aspects to the ATM, thus no monitoring via the regular NinjaScript strategy methods will take place (also applies to strategy performance tracking)"
                              Chelsea B.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by NullPointStrategies, Yesterday, 05:17 AM
                              0 responses
                              56 views
                              0 likes
                              Last Post NullPointStrategies  
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              132 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              73 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              45 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              49 views
                              0 likes
                              Last Post TheRealMorford  
                              Working...
                              X