Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Grouping trades together

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

    Grouping trades together

    I am working with unmanaged orders. I was under the impression that if I gave an entry and exit order the same SignalName, that the trade summary (after running a backtest eg) would group them together. But that does not seem to be the case.

    I managed to replicate this in a very simple example (see screenshots)

    In the below example, I created 2 groups of 3 orders each with an entry, a target and a stop.

    group1:
    - entry order: buy
    - target sell order
    - stop sell order

    group2:
    - entry order: sell
    - target buy order
    - stop buy order

    I keep track of the target/buy and when one is filled, cancel the other (not using the oco, but rather replicating it in my code) - you can see from the orders that that worked as desired.

    I was hoping to see the Entry name and exit name matched to give me the trade details.

    Is there a way of forcing this? Otherwise, I have to export all executions and match them myself. But then i miss some of the interesting details and I cannot use the backtest chart for analysis.


    Click image for larger version

Name:	image.png
Views:	165
Size:	22.8 KB
ID:	1219298Click image for larger version

Name:	image.png
Views:	115
Size:	15.5 KB
ID:	1219299

    #2
    Hello crystalet,

    The fromEntrySignal, to connect an exit to a specific entry, only works with the managed approach.

    There is no way of forcing this.

    Trade pairing in the Strategy Performance window is based on First In First Out.
    https://ninjatrader.com/support/help...tegyFromAChart
    Last edited by NinjaTrader_ChelseaB; 10-13-2022, 11:26 AM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      thats unfortunate - well, I can always run the analysis outside of NT then.

      On that note, is there a way to access the second output screen for printing to screen?

      Comment


        #4
        Hello crystalet,

        Set PrintTo to PrintTo.OutputTab2.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        83 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        143 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        83 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        256 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        334 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X