Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

from time; to time?

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

    from time; to time?

    I just searched for this 'time value'..no results due to search words being too common? hmm..and I know this has been brought up here before.

    need to run strategy from 9:00 AM to 3:00 PM EST. basically I just need to know exactly what to input for time series, time value, etc.

    I know it should look something like this

    from time >= 9:00 AM to time <= 3:00 PM but all I can get to come up is: 'to time; to time'. cannot input: 'from time; to time'

    I have done this before (2 years ago) with a different strategy before..but cannot remember what parameters to input in strategy wizard.

    #2
    Hello shooly76,

    Thanks for your post.

    You've posted in the NinjaTrader 8 strategy development so I will assume you are using the strategy builder.

    This is the code generated by the strategy builder using your times as an example:

    if ((Times[0][0].TimeOfDay >= new TimeSpan(9, 0, 0)) && (Times[0][0].TimeOfDay <= new TimeSpan(15, 0, 0)))

    Here is a link to the helpguide for the strategy builder "conditions" where you will find a section on how to make time comparison in the builder: http://ninjatrader.com/support/helpG...on_builder.htm

    Comment


      #3
      oh man..Im sorry.. I meant to post this in NT7 strategy development. can you move this thread there for me.. and give me (maybe) a new answer for NT7 strategy WIZARD....lol. thanks

      Comment


        #4
        I dont remember having to input any ninja script code last time I made it work with a different strategy.

        Im pretty sure I just built the time series/value parameters within the strategy wizard.

        ie- I did not need to input ninja script code..the wizard did all that for me. I can do it..but if I dont have to then Id rather the wizard do it for me..ha.

        Comment


          #5
          Hello shooly76,

          Thanks for clarifying your needs.

          In the NT7 Strategy wizard's condition builder, in the upper window, click Add then on the left side select Time> Time series, next in the center select ">=", next on the right side select Time>Time Value and set the specific time of 9:00 AM, click OK. Next again click the Add button and repeat the sequence except choose "<=" and on the right enter the time of 3:00 PM. See screenshot.

          Reference: http://ninjatrader.com/support/helpG...on_builder.htm
          Attached Files

          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