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

Minimum # of trades per day

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

    Minimum # of trades per day

    Is there a way to require optimization beyond a specific trade # per day? (e.g. 1.25 trades minimum and optimize around that)

    #2
    Hello mrre1,

    Thank you for your note.


    There is no means to optimize based on waiting for a set number of trades in a backtest first. Although, that may not be what you are asking.

    Are you looking to limit the number of trades taken in the optimization? Can you provide further details on how you wish to optimize based on a required number of trades?

    Comment


      #3
      Thanks for the reply.

      I am wondering if there is a way to require a minimum number of trades as a precondition to the series that is being optimized. For example, I have a strategy that is generating .2 trades per day in backtest. I want it to generate at least .8 trades per day.

      Comment


        #4
        Hello mrre1,

        Thank you for your response.

        There would be no means to know ahead of the test how many trades would be taken per day.

        Depending on the condition you are using to enter trades you could set a limit to the number of trades per day as a max. Let's say your strategy takes 10 trades per day but you only want 8, you could set a counter that reset on Bars.FirstBarOfSession.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by helpwanted, Today, 03:06 AM
        1 response
        12 views
        0 likes
        Last Post sarafuenonly123  
        Started by Brevo, Today, 01:45 AM
        0 responses
        9 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        5 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        387 views
        1 like
        Last Post Gavini
        by Gavini
         
        Working...
        X