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 dorotwart, Today, 11:43 PM
    0 responses
    2 views
    0 likes
    Last Post dorotwart  
    Started by letilleulskin, Today, 11:33 PM
    0 responses
    3 views
    0 likes
    Last Post letilleulskin  
    Started by letilleulskin, Today, 11:29 PM
    0 responses
    2 views
    0 likes
    Last Post letilleulskin  
    Started by MatthewLesko, Today, 11:13 PM
    0 responses
    3 views
    0 likes
    Last Post MatthewLesko  
    Started by Lance El Camino, Today, 04:14 PM
    1 response
    13 views
    0 likes
    Last Post s.kinra
    by s.kinra
     
    Working...
    X