Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Method for Checking if in Current Position

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

    Method for Checking if in Current Position

    Is there a Method or function which will check the NT system to see if the program is currently in a trade, and can then be used to not have indicators overlap each other.

    For example, a bool might work: If no trade is currently entered (true), enter trade. Or If no trade is currently entered (false), do not enter new trade.

    I'm curious how others have solved this problem. Let me know if I need to be more specific in detail. A code snip example would be very helpful. I just don't know if people are using boolians or if there is a script in the NT system which the program can call to determine the current position status.

    Thanks!

    #2
    RedEye, you can only determine the MarketPosition of a specific NinjaScript strategy instance, this can't be done on a global NT level unfortunately - http://www.ninjatrader-support.com/H...tPosition.html

    Comment


      #3
      Ok, thank you for the reply, I can probably have this work for my situation.
      Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      109 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      59 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      37 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      40 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      77 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X