• 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 Douglee, Today, 08:11 AM
    0 responses
    1 view
    0 likes
    Last Post Douglee
    by Douglee
     
    Started by DTSSTS, Today, 08:01 AM
    0 responses
    1 view
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Started by luxurious_04, Today, 08:00 AM
    0 responses
    2 views
    0 likes
    Last Post luxurious_04  
    Started by GARZONJ, Today, 06:55 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by KarstenKafl, Today, 12:38 AM
    2 responses
    16 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X