Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Total PnL limit strategy stop

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

    Total PnL limit strategy stop

    I want my strategy to not put a trade through if the PnL for the day meets a certain criteria. I've added a bool function and inputs but it wont recognize when the realized PnL has reached its limit. I tried changing the realized PnL to currency, points and ticks and none is recognized. I want to do this in strategy builder. Any suggestions?

    #2
    Hello lbolton64,

    Thanks for your post.

    It sounds like you would like to add a daily loss limit to your NinjaScript strategy.

    The Strategy Builder custom series can be used with offsets to do math and subtract the total PnL from yesterday's PnL to get the current PnL.

    Please see the example script, DailyLossLimitBuilderExample, in the forum post linked below for how this would be accomplished.

    https://ninjatrader.com/support/foru...limit-examples​​
    <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
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 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