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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X