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 rtwave, 04-12-2024, 09:30 AM
    2 responses
    19 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Started by tsantospinto, 04-12-2024, 07:04 PM
    5 responses
    67 views
    0 likes
    Last Post tsantospinto  
    Started by cre8able, Today, 03:20 PM
    0 responses
    6 views
    0 likes
    Last Post cre8able  
    Started by Fran888, 02-16-2024, 10:48 AM
    3 responses
    49 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Started by martin70, 03-24-2023, 04:58 AM
    15 responses
    115 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X