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 trilliantrader, 04-18-2024, 08:16 AM
        5 responses
        22 views
        0 likes
        Last Post trilliantrader  
        Started by Davidtowleii, Today, 12:15 AM
        0 responses
        3 views
        0 likes
        Last Post Davidtowleii  
        Started by guillembm, Yesterday, 11:25 AM
        2 responses
        9 views
        0 likes
        Last Post guillembm  
        Started by junkone, 04-21-2024, 07:17 AM
        9 responses
        68 views
        0 likes
        Last Post jeronymite  
        Started by mgco4you, Yesterday, 09:46 PM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Working...
        X