Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Long and short on same instrument

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

    Long and short on same instrument

    I have found other threads that ask a similar question but not in relation to using Strategy Analyzer.

    Basically, I am testing a strategy that wants to have long and short orders open at the same time (on the same instrument). But when I open (say) a short, the previously opened long is automatically closed.

    Is it possible to switch off this auto-closing?

    I realize that I can test this by using 2 instruments, but if I do this, is it possible to display charts for both instruments within the Analyzer so that I can see the longs on the 1 chart and the shorts on the other?

    Many thanks

    #2
    Hello,


    Having an open position both long and short at the same time is not supported. In NinjaScript, having working orders that is both long and short is also not supported.

    If you want aggregated results, you cann export the trades tab to Excel and run statistics from there. Just right click>export to excel.
    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    65 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    41 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    23 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    26 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    52 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X