Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"if long"

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

    "if long"

    is it possibly to write an if long statement, then do this...can someone show me the code??? I have a trigger to go long, but now i want to exit long with a certain trigger. please help!!!

    #2
    Something like:

    if (Position.MarketPosition == MarketPosition.Long)
    {
    // Do something here
    }

    More information - http://www.ninjatrader-support.com/H...tPosition.html
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bjgjkhjuhgtybg, Today, 04:38 AM
    0 responses
    2 views
    0 likes
    Last Post bjgjkhjuhgtybg  
    Started by varun12343, Today, 03:09 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by Lance El Camino, Yesterday, 04:14 PM
    2 responses
    24 views
    0 likes
    Last Post NT-Roland  
    Started by MatthewLesko, Yesterday, 11:13 PM
    1 response
    14 views
    0 likes
    Last Post NT-Roland  
    Started by kevinenergy, Today, 01:44 AM
    0 responses
    7 views
    0 likes
    Last Post kevinenergy  
    Working...
    X