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

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
    Chris L.NinjaTrader Customer Service

    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 elirion, Today, 09:32 PM
      0 responses
      2 views
      0 likes
      Last Post elirion
      by elirion
       
      Started by cre8able, Today, 09:15 PM
      1 response
      5 views
      0 likes
      Last Post bltdavid  
      Started by cummish, Today, 08:43 PM
      0 responses
      10 views
      0 likes
      Last Post cummish
      by cummish
       
      Started by Option Whisperer, Today, 07:58 PM
      4 responses
      21 views
      0 likes
      Last Post Option Whisperer  
      Started by ETFVoyageur, 05-07-2024, 07:05 PM
      13 responses
      87 views
      0 likes
      Last Post ETFVoyageur  
      Working...
      X