• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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
    BertrandNinjaTrader Customer Service

    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 tradykat, Today, 04:39 PM
        0 responses
        4 views
        0 likes
        Last Post tradykat  
        Started by tradykat, Today, 04:12 PM
        0 responses
        11 views
        0 likes
        Last Post tradykat  
        Started by UncleRyan, Today, 03:43 PM
        2 responses
        7 views
        0 likes
        Last Post UncleRyan  
        Started by ttodua, Today, 03:39 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by NtFan, Today, 02:05 PM
        1 response
        15 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X