Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Determine open position size by entry signal name, not the entire open position size?

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

    Determine open position size by entry signal name, not the entire open position size?

    Hello,

    I have a strategy that scales in and scales out using multiple EnterLong() and ExitLong() method calls with different entry signal names. By scaling in, I mean that the EnterLong() method is called multiple times before ExitLong() is called, and the EnterLong() method is always called with a unique signal name that is guaranteed to be different than the signal names used in all of the other calls to EnterLong().

    Is there a NinjaScript method that returns the current position size by entry signal name rather than the current position size of the entire position that was opened by multiple calls to EnterLong()?

    Thanks in advance!

    EquityTrader

    #2
    Hello EquityTrader,

    There is not a specific method to track quantities by the signal name, you would need to either track the specific orders by using OnOrderUpdate or use your own means to track individual quantities. If the purpose of tracking the quantities is to be able to later close that amount you can just call the exit order with the entries Signal Name as the From Entry Signal to close that portion for the position.

    Comment


      #3
      Hi Jesse,

      Thank you for the quick and informative response.

      EquityTrader

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      88 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X