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 RubenCazorla, 08-30-2022, 06:36 AM
      3 responses
      77 views
      0 likes
      Last Post PaulMohn  
      Started by f.saeidi, Yesterday, 12:14 PM
      9 responses
      23 views
      0 likes
      Last Post f.saeidi  
      Started by Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      5 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,772 views
      0 likes
      Last Post Leafcutter  
      Working...
      X