Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Use time in strategy builder

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

    Use time in strategy builder

    Hi,
    I have been reading posts about how to use time in the strategy builder. I don't understand it, also the help text is in a language I don't understand.
    It's too technical for me, and I hope you can tell me how to do this exactly in the strategy builder (not in the code) so that I can run a backtest over a certain historical period.

    What I am looking for is that a trade will start (and end) daily on a certain time, using the Inputs (as attached).

    In the conditions, how to enter this correctly?

    Thanks for helping out
    Cheers
    Dennis

    #2
    Hello Dennis, thanks for writing in.

    The condition looks fine to me. What kind of chart are you running this on? If the time stamp of your bars is not exactly 9:30 or 10:30 the condition will not trigger. Try running the strategy on a 1 minute chart, do you get a trade?

    This set of conditions works for me on a 1 minute chart:




    Best regards,
    -ChrisL

    Comment


      #3
      Thanks Chris,
      I couldn't compile (Could not compile Ninjascript). I created a new strategy, used 1 min bars and now no problem.
      Thanks again, and have a good weekend

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      43 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      30 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      48 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      38 views
      0 likes
      Last Post CarlTrading  
      Working...
      X