Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exiting a position

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

    Exiting a position

    Hi Guys,

    If I am in a long position, what is the code to exit the position?

    the code i have used to enter the position is below,

    if (EMA(14)[1] > EMA(14))
    {
    EnterLong(DefaultQuantity, "");
    }

    Best Regards,

    James

    #2
    You could for example use ExitLong() -

    http://www.ninjatrader-support.com/H.../ExitLong.html
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by pilotfo, Today, 12:50 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by DTSSTS, Today, 11:35 AM
    2 responses
    10 views
    0 likes
    Last Post DTSSTS
    by DTSSTS
     
    Started by sinpeople, Today, 07:20 AM
    2 responses
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Frank1000, Today, 03:05 AM
    5 responses
    15 views
    0 likes
    Last Post Frank1000  
    Started by fscabrera03, Yesterday, 01:18 PM
    2 responses
    25 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X