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 bortz, 11-06-2023, 08:04 AM
        47 responses
        1,606 views
        0 likes
        Last Post aligator  
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        9 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        19 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        6 views
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        15 views
        0 likes
        Last Post Javierw.ok  
        Working...
        X