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 JTizz, Today, 01:20 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by omermirza, Today, 12:39 PM
    2 responses
    11 views
    0 likes
    Last Post omermirza  
    Started by mballagan, Today, 01:02 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by larkmail, Today, 12:30 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by Danila, Today, 11:08 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X