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 andrewtrades, Today, 04:57 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    6 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X