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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      58 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      133 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X