Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to stop a strategy once day profit target is reached?

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

    How to stop a strategy once day profit target is reached?

    How do I set a day profit target in strat wizard so that once the target is reached and there are no open positions then stop trading but if any open positions are still open then continue to trade until all positions are closed?

    #2
    relogical, for this you would need to work in our NinjaScript editor outside of the wizard interface.

    For a sample dealing with the topics you raised, please check into this link - http://www.ninjatrader.com/support/f...ead.php?t=4084

    Comment


      #3
      Can someone explain how to stop the strategy once certain profit is been reached.

      Say I have a Strategy to go long it started at 10:00 am it has processed three trades and made $500 now say that is all I need to close the day. How to tell the strategy to trade until 500.

      Comment


        #4
        Hi Nettony,

        Thank you for posting and welcome to the forum!

        The first step you want in your code is to reset the daily trade profitability. You can then test your strategy if you have reached 500$ of profit and then Disable();.

        Here is a reference sample on how to stop a strategy based on profitability and how to reset your trade profitability.
        http://www.ninjatrader.com/support/f...ad.php?t=19289

        Let me know if I can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

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