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

deactivate strategies automatically if pnl = daily win

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

    deactivate strategies automatically if pnl = daily win

    Good morning. I am a beginner on ninjatrader strategy builder. I would like to disconnect the strategy if the pnl = daily win.
    Thank you for your answers​.
    if it's in code, explain to me how to integrate it. I'm not a coder.
    Thank you

    #2
    Hello Tim-c,

    A daily loss limit or profit limit would require editing the strategies to support that. if you are using imported strategies you can contact the developer to implement that. If you made your own strategy you can implement that type of condition. Here is one sample of using PnL values using the strategy builder:
    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
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply. I would like a daily win and not a daily loss

      Comment


        #4
        I use the strategy builder to create the strategy

        Comment


          #5
          Hello Tim-c,

          It would be the same concept for win or loss, to check for win you would just change the condition to check if the PnL is above a certain amount.

          You can find a sample for the builder here: https://forum.ninjatrader.com/forum/...er#post1203124
          JesseNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by DJ888, Yesterday, 10:57 PM
          0 responses
          6 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by MacDad, 02-25-2024, 11:48 PM
          7 responses
          158 views
          0 likes
          Last Post loganjarosz123  
          Started by Belfortbucks, Yesterday, 09:29 PM
          0 responses
          7 views
          0 likes
          Last Post Belfortbucks  
          Started by zstheorist, Yesterday, 07:52 PM
          0 responses
          7 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          151 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Working...
          X