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 NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X