Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Long orders shown as short in trade performance

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

    Long orders shown as short in trade performance

    Hello,

    I am struggling to understand why my strategy trades (demo) shows as shorts in the trade performance where in reality my script only allows for long positions... I have no idea how to approach solving this. Anyone good ideas? My hunch is that it is related to the end-of-session somehow as most positions seem to start around end-of-session. Maybe it has become "inverted" somehow from a bad starting order.

    Thank you!

    Click image for larger version

Name:	Screen Shot 2019-12-10 at 5.18.23 PM.png
Views:	397
Size:	80.0 KB
ID:	1080422Click image for larger version

Name:	Screen Shot 2019-12-10 at 5.18.00 PM.png
Views:	406
Size:	268.1 KB
ID:	1080423
    Attached Files

    #2
    Hello Jesperboll,

    Thanks for your question.

    There are two possible things that are happening.

    1. The Performance report is started when there is an open position. Each Trade is paired from recorded Executions in a FIFO manner. If the report is started when you are in an open position, the first execution which in reality would be an exit, would identify as an entry. Subsequent trades would then be paired following FIFO and exits for a long position could show as entries for a short position

    2. The strategy ias enabled out of sync with the account. The strategy will think it is in a long position but the actual trades on the account may be for opening/closing short positions.

    #1 can be addressed by changing when the performance report starts so it is started when you are flat.

    #2 would be addresses by ensuring that the strategy position and account position are in sync when you enable the strategy.

    Strategy Position vs. Account Position - https://ninjatrader.com/support/help..._account_p.htm

    Syncing Account Positions - https://ninjatrader.com/support/help..._positions.htm

    Please let me know if I can be of further assistance.

    Comment


      #3
      Thanks Jim, will give that a try!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      52 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      130 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      70 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      44 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      49 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X