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

Entries/Exits mismatch in trade log & on chart

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

    Entries/Exits mismatch in trade log & on chart

    Hi there,

    I am working on strategy which can have concurrent Long & Short trades open at the same time ... Using Unmanaged=true to that effect.

    Even though I open/close Longs w/ Buy/Sell, and Shorts with SellShort/BuyToCover, in the trade log & on the chart Ninja can pair a Buy with SellShort, if the SellShort happens before the Sell supposed to close the Buy

    Is there a way to get them correctly paired ? Each Buy/SellShort has a unique signal-name at the moment (Lg-1 to Lg-infinity, same for Shorts), exits use a generic "Target" or "Stop" for signal-name.

    Thanks in advance
    Dominique

    #2
    Hello Dominique,
    Trade pairing will be done as per FIFO only.

    The only place where the entry signals and the exit signals are tied together is while backtesting.

    This is however already in our future enhancement list and you can track it via tracker id #1780.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      I tried to use 2 different TF for Long & Short orders, but if these are on the same instrument it does the same.

      So I am willing to create a fake duplicate of my instrument to use as 2nd TF, however I have tons of rollover information that I don't want to manually input again ... is there a way to save the rollover data & load it from saved file ? (even unsupported)

      Thanks
      Dominique

      Comment


        #4
        Hello Dominique,
        We do not recommend creating duplicate instruments as it can have adverse effects.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          OK, what I did is:

          - Use the prior month expiry as 2nd timeframe
          - Use 1st TF for Longs, 2nd TF for Shorts
          - I monitor setups on 1st TF only
          - I compute all entries/targets/stops levels on appropriate TF for Long / Short

          It is a annoying to have to do this, but this is the only way I can think of to get proper matching of orders in the trade log.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by fx.practic, 10-15-2013, 12:53 AM
          5 responses
          5,404 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by Shai Samuel, 07-02-2022, 02:46 PM
          4 responses
          95 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          8 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          160 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          9 views
          0 likes
          Last Post Belfortbucks  
          Working...
          X