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

Unwanted "Close position"

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

    Unwanted "Close position"

    Hello,

    I have build a strategy using both long and short positions within the same instrument (EURUSD).
    But when backtesting it keeps closing me positions that I don't want to close. The name of the executions then always is: Close position

    Is this because I have an open long position and open up a short position while long is still open? Can't you have a long and a short position for the same instrument at the same time?
    Is there a workaround?

    Your help is much appreciated,
    Dennis

    #2
    >> Is this because I have an open long position and open up a short position while long is still open?
    Correct

    >> Can't you have a long and a short position for the same instrument at the same time?
    No

    >> Is there a workaround?
    You could try running multiple strategies simultaneously. However, this would be feasible real time only but not in back test mode.

    Comment


      #3
      Dankeschön für die schnelle Antwort :-)

      Comment


        #4
        Bitte schoen

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by AaronKoRn, 04-27-2024, 09:49 PM
        3 responses
        31 views
        0 likes
        Last Post AaronKoRn  
        Started by f.saeidi, Today, 07:07 AM
        6 responses
        19 views
        0 likes
        Last Post f.saeidi  
        Started by cmtjoancolmenero, Today, 02:31 PM
        6 responses
        15 views
        0 likes
        Last Post cmtjoancolmenero  
        Started by Graci117, Yesterday, 11:40 PM
        5 responses
        27 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by rene69851, Today, 03:25 PM
        0 responses
        3 views
        0 likes
        Last Post rene69851  
        Working...
        X