• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reverse Position

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

    Reverse Position

    I am trying to reverse position using the code below. Instead system will result with 2 Short Orders? and Long position disappears?

    Example:
    currently long;
    if(_shortSignal == true){
    ExitLong();
    EnterShort();
    }

    Using NT7

    #2
    Hello atxim,

    Welcome to the NinjaTrader forums. Enter methods will take care of the reversals. They will close current position and enter in the other direction. You can remove the ExitLong here if reversal is what you're going for.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by StevenNelson, 10-11-2019, 05:51 AM
    2 responses
    12 views
    0 likes
    Last Post ManIp
    by ManIp
     
    Started by TazoTodua, Today, 12:29 PM
    1 response
    21 views
    0 likes
    Last Post bltdavid  
    Started by sdauteuil, Today, 03:16 PM
    0 responses
    6 views
    0 likes
    Last Post sdauteuil  
    Started by Zenersev, Today, 02:11 PM
    0 responses
    4 views
    0 likes
    Last Post Zenersev  
    Started by TazoTodua, Today, 12:00 PM
    0 responses
    7 views
    0 likes
    Last Post TazoTodua  
    Working...
    X