Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Position by Named Entry

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

    Market Position by Named Entry

    Using the strategy builder...

    I have a strategy with 2 separate named entries.

    Is there a way to determine the market position for the named entries individually.

    Example under the conditions and actions box
    Entryname1 Position.MarketPosition = MarketPosition.Long
    Entryname2 Position.MarketPosition = MarketPosition.Flat

    I need to set Variable values based on the market position of each entry.

    Thank you



    #2
    Hello sdauteuil,

    Thank you for your post.

    The Position object is for the strategy's whole position (separate from the account position) and it cannot be broken down to individual entries. To tell which order the entries were submitted, you may use booleans that get changed when the various orders get submitted.

    Additionally, the strategy may use BarsSinceEntryExecution to see if the entry has executed. Attached are example screenshots showing how BarsSinceEntryExecution can be tested.


    Please let me know if I may be of further assistance.
    Attached Files
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X