Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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:	118
Size:	22.8 KB
ID:	1219298Click image for larger version

Name:	image.png
Views:	68
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 kujista, Today, 06:23 AM
        4 responses
        14 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by traderqz, Yesterday, 09:06 AM
        2 responses
        16 views
        0 likes
        Last Post traderqz  
        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  
        Started by f.saeidi, Today, 08:13 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X