Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trading Day of Month, Week, etc.

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

    Trading Day of Month, Week, etc.

    Hello,

    With NT7, am I able to set up an automated trading strategy for certain futures markets and backtest/automatically trade the strategy?

    For example, let's take the E-Mini S&P 500. I would like to create a strategy and/or backtest.... "Long IF trading day of the month = 3 AND trading day of the week does not = Monday."

    In this example, I would be buying on the open IF the trading day of the month is 3 and the trading day of the week is not Monday.

    Also, I would like to just backtest buying on the open of each single day of the month and exiting on the next profitable open, with a certain dollar stop loss.

    Any videos/tutorials or guidance you could give me would be greatly appreciated! Thanks so much!

    #2
    Hello JGCapitalia,

    Yes, it possible to create conditions that compare the DateTime of the bar.

    Below is a link to a video.
    https://www.youtube.com/watch?v=HCyt...u.be&t=43m 30s

    And the reference sample in the help guide.
    https://ninjatrader.com/support/help...to_limit_t.htm

    A link to the help guide on Time[0].
    https://ninjatrader.com/support/help...eries_time.htm

    As well a link to the Microsoft Documentation on DateTime.
    https://docs.microsoft.com/en-us/dot...ew=netcore-3.1
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you, Chelsea! Am I able to backtest the strategy with NT7's data using Kinetick EOD Free?

      Comment


        #4
        Hello JGCapitalia,

        Your post is in the NinjaTrader 8 strategy development section of the forums.

        Is your inquiry for NinjaTrader 7, or are you asking how to do this in NinjaTrader 7 as well?

        Kinetick EOD provides end of day data (daily bars) which can be used for backtesting over Day, Week, Year bar types.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi Chelsea, oops, my bad. My inquiry was for NT7. I didn’t know there were two separate forums. Does it work the same way for NT7?

          Comment


            #6
            Hello JGCapitalia,

            I've moved your thread to the NinjaTrader 7 Strategy Development section of the forums.
            https://ninjatrader.com/support/foru.../ninjatrader-7

            Below are these links for NinjaTrader 7.
            https://www.youtube.com/watch?v=FmBi...tu.be&t=28m20s
            https://ninjatrader.com/support/help...to_limit_t.htm
            https://ninjatrader.com/support/helpGuides/nt7/time.htm

            Yes, this would be the same for NinjaTrader 7.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by hbkopugwdmkb, Today, 11:10 PM
            0 responses
            1 view
            0 likes
            Last Post hbkopugwdmkb  
            Started by fastnet, Today, 10:58 PM
            0 responses
            3 views
            0 likes
            Last Post fastnet
            by fastnet
             
            Started by tradingbobby, Today, 10:41 PM
            1 response
            6 views
            0 likes
            Last Post s.kinra
            by s.kinra
             
            Started by bfalls, Today, 10:38 PM
            1 response
            7 views
            0 likes
            Last Post s.kinra
            by s.kinra
             
            Started by WHICKED, Today, 09:05 PM
            0 responses
            11 views
            0 likes
            Last Post WHICKED
            by WHICKED
             
            Working...
            X