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 NullPointStrategies, Today, 05:17 AM
    0 responses
    44 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    124 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    65 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