Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Max Loss and Max Profit Limit in dollars

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

    Max Loss and Max Profit Limit in dollars

    Hello,

    Is it possible to write a script that would disable the system after a max loss or max profit has been hit? Is so, can you provide an example of how to do so. Thanks.

    #2
    Hello AdeptistJune,

    Thanks for your post.

    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 and provided an example of how to set a Daily Loss Limit using the Strategy Builder.

    Please see the example scripts located in the forum post linked below for how this could be accomplished. There are scripts demonstrating this for both the Strategy Builder and an unlocked sciprt.
    https://ninjatrader.com/support/foru...limit-examples

    Let us know if we may assist 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

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    93 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    138 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
    123 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    73 views
    0 likes
    Last Post PaulMohn  
    Working...
    X