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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      144 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X