Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Setting Profit and Loss limits in a strategy using the Strategy Builder

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

    Setting Profit and Loss limits in a strategy using the Strategy Builder

    Using the strategy Builder I am trying to set a limit on a Profit and Stop on my strategy.
    I am trying to set it in the Inputs and variables so it will be visible and set in the chart when you add the strategy.

    The targets could be set to the desired amount and when struck, trading would be stopped for that day and then reset for the following day.

    I am getting lost in the syntax to get this right, I have tried but failed to get this working so far?

    Any help would be gratefully appreciated.

    Thanks

    #2
    Hello fredfred,

    A daily loss limit would not be something that can be accomplished with the strategy builder as this requires accumulating the profit/loss which requires math.

    Below is a link to an example.
    Hello, I've updated the DailyLossLimit and DailyLosLimitMultiTrade examples that were posted on the forum for NinjaTrader 7 for NinjaTrader 8. These are often requested and I felt they are good examples to have for NT8. DailyLossLimitExample_NT7 - http://ninjatrader.com/support/forum...241#post451241 (http://ninjatrader
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,281 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    19 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Tim-c, Today, 02:10 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Taddypole, Today, 02:47 PM
    0 responses
    5 views
    0 likes
    Last Post Taddypole  
    Started by chbruno, 04-24-2024, 04:10 PM
    4 responses
    53 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Working...
    X