Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy to execute trades only once per day

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

    Strategy to execute trades only once per day

    Hello,

    Does anyone know how to instruct a strategy to trade only one time per day by using the strategy builder or by using code is fine.

    Thanks.
    dendy.

    #2
    Hello,


    You can do it in the Strategy Wizard. This link explains how to do it:
    DenNinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply Ben,

      Could you be a little more clear than the post you referred me to because I am receiving errors that I don't know how to repair. The attached picture shows those errors.

      As you can see, I tried the advice offered.

      Thanks.
      dendy.
      Attached Files

      Comment


        #4
        Hello,

        If you are getting compile errors you have unlocked the code and altered it.

        I suggest deleting all of the code in OnBarUpdate() and compiling the strategy. Then remove it: File>Utilities>Remove.

        Then start fresh following the directions I posted. Do not select Unlock Code though. Provide me with a screen shot of the conditions you have set if you get stuck. If you still get an error please let me know.
        DenNinjaTrader Customer Service

        Comment


          #5
          I followed the same instructions with the strategy builder (locked code) and received the errors shown in the attached picture.

          Thanks in advance for your help.
          dendy.
          Attached Files

          Comment


            #6
            Hello,

            This means that you have a compile error in another file. From the looks of it, you probably did not resolve the errors in your pervious indicator proir to creating your new indicator.

            All of the indicators must compile prior to moving forward to another indicator.

            Double click on the red error to pull up the code with error and reslove the error.

            This link will help:
            Last edited by NinjaTrader_Ben; 10-21-2008, 02:26 PM.
            DenNinjaTrader Customer Service

            Comment


              #7
              Thanks again,

              That worked. I just deleted the un-locked version and compiled the version from the strategy wizard.

              dendy.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              574 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              332 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              101 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              553 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              551 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X