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
    BertrandNinjaTrader Customer Service

    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 TraderCro, 04-12-2024, 11:36 AM
      4 responses
      69 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Mindset, Yesterday, 02:04 AM
      1 response
      15 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by agclub, 04-21-2024, 08:57 PM
      4 responses
      18 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by Irukandji, Today, 04:58 AM
      0 responses
      3 views
      0 likes
      Last Post Irukandji  
      Started by fitspressoburnfat, Today, 04:25 AM
      0 responses
      2 views
      0 likes
      Last Post fitspressoburnfat  
      Working...
      X