Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Builder current market position flat issue

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

    Strategy Builder current market position flat issue

    Hi.

    I notice something when enabling strategies using for example Position.MarketPosition = MarketPosition.Flat

    The issue is that it looks at the strategy historical position vs the actual real account position when enabled.

    I would like it, upon enabling the strategy, to look at the real account position.

    How can I make it evaluate the actual account position being flat and not only the strategy historical position?

    Thanks folks.

    Gref

    #2
    Hello birdog,

    Thanks for your post.

    Position.MarketPosition will detect what the strategy position of a strategy is.

    To detect the actual account position in a strategy, you could use PositionAccount.MarketPosition.

    See this help guide page for more information about PositionAccount.MarketPosition: https://ninjatrader.com/support/help...etposition.htm

    Please let me know if I may assist you further.
    <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


      #3
      Hi brandonhall Ok. Cool. Which one is that in the Strategy Builder though?

      Comment


        #4
        Hello birdog,

        Thanks for your note.

        PositionAccount.MarketPosition is not an available option in the Strategy Builder.

        To use PositionAccount.MarketPosition in a strategy, you would need to unlock the script from the Strategy Builder using the 'Unlock code' button and manually program the logic into your script.

        Please let me know if I may further assist.
        <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


          #5
          brandonhall Ok. Noted. Is there any way you could ask the devs to consider allowing this in the Strategy Builder natively?

          Comment


            #6
            Hello birdog,

            Thanks for your note.

            I have submitted this as a feature request to the Development team and I have added your vote to the feature request. This request is being tracked under the number SFT-5703.

            As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

            Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

            Please let us know if we may be of further assistance to you.​
            <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, Yesterday, 05:17 AM
            0 responses
            54 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            130 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            71 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            44 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            49 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X