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