Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unmanaged strategies - Assigining orders to Trades

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

    Unmanaged strategies - Assigining orders to Trades

    Hello Ninja support,

    I'm developing an unmanaged strategy, which can place more than one entry order at a time.

    When I look at the chart and trades table, I see ninja defines 'trades' in a FIFO-like manner, namely, it associates the first entry with the first exit, the second entry with the second exit and so forth.

    My problem is that in my strategy, the first entry should sometimes be logically associated with the second exit, as they are derived from the same signal.

    Is there a way to tell NT which entry should be associated with which exit?

    Thanks,
    Boaz

    #2
    Hello Boaz,

    Thank you for your post.

    There is no method to work around the fact that the reporting will show the first entry with the first exit, the next entry with the next exit.

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

    Comment


      #3
      Thank you, Patrick.

      In this case, is there a way to disable charting of trades (the dashed lines in the chart)?

      Boaz

      Comment


        #4
        Right click on the chart--> select data series--> set the 'plot executions' to 'disabled'.
        MatthewNinjaTrader Product Management

        Comment


          #5
          Originally posted by NinjaTrader_Matthew View Post
          Right click on the chart--> select data series--> set the 'plot executions' to 'disabled'.
          * How can I achieve the same effect with charts plotted in the Strategy Analyzer?
          * Can I select to remove only the dashed lines for trades, but keep the other execution markers?
          * Can I do this programmatically from a strategy script?

          Comment


            #6
            Hello Boaz,

            Thank you for your response.

            You will need to create a chart template within a chart but outside of the Strategy Analyzer.

            To create a chart template please go to File > New > Chart > set the Trades section to your desired values (such as changing the colors for the NinjaScript strategy unprofitable and profitable trades to Transparent) > then OK > right click in your chart > select Templates > Save As > give the template a name > Save.

            Then in your Strategy analyzer Chart tab > right click and select Templates > Load > select your template > OK.

            For information on Chart Templates please visit the following link: http://www.ninjatrader.com/support/h..._templates.htm

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

            Comment


              #7
              Thanks Patrick.

              Is there a way to disable just the trade markers (the dashed lines), but keep the execution markers (arrows) active?

              Thanks,
              Boaz

              Comment


                #8
                Hello Boaz,

                Thank you for your response.

                Using the same method below to save the template to apply to your chart on the Strategy Analyzer you will need to change the 'NinjaScript strategy profitable trade' and 'NinjaScript strategy unprofitable trade' to Transparent for their color by left clicking on the '+' button to expand the section and change the Color to Transparent.
                To create a chart template please go to File > New > Chart > set the Trades section to your desired values (such as changing the colors for the NinjaScript strategy unprofitable and profitable trades to Transparent) > then OK > right click in your chart > select Templates > Save As > give the template a name > Save.

                Then in your Strategy analyzer Chart tab > right click and select Templates > Load > select your template > OK.
                Please let me know if you have any questions.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, Yesterday, 10:06 AM
                0 responses
                17 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                16 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                14 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                9 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                36 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X