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 CarlTrading, 03-31-2026, 09:41 PM
            1 response
            47 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            23 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            33 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            51 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Working...
            X