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

Time of Day

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

    #16
    Yes, I have not seen any new trades taken outside your filter, so the rules worked - but in the original version trades were held outside those times of course until they ran into stop / target or ExitOnClose.
    BertrandNinjaTrader Customer Service

    Comment


      #17
      Hi Bertrand,

      trades should be held open after the time window, until they are stopped out or take profit.
      What I am trying to accomplish is to open trades *only* during the time window.

      In my test (I have tried your script) I still see trades taken outside that range (example: 13.02.2008 @ 00:15).

      Could you please help me?

      thank you,

      John.

      Comment


        #18
        Sure, please post what data provider / broker you're using here, so I can test on this data as well.
        BertrandNinjaTrader Customer Service

        Comment


          #19
          Hi Bertrand,

          I have sent a reply via e-mail, attaching 6 months of 1 min historical data taht you can upload into NT to test the script on it,

          thank you,

          John.

          Comment


            #20
            Hi Bertrand,

            thank you for your e-mail.

            Please find a picture attached.
            The column indicated does show the opening time of the trades, the closing time, or what else?
            I would like to eliminate those losing trades (listed from 00.00 AM to 9.00 AM).

            Thank you,

            John.
            Attached Files

            Comment


              #21
              Here's what I see on your provided data for $EURUSD backtesting your strategy - the trades would range from 9 AM to 7 PM as set by the time-filter. This is my changed script that does not hold any trades, so you see the pure trade entry logic working out here.
              Attached Files
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by suroot, 04-10-2017, 02:18 AM
              4 responses
              3,019 views
              0 likes
              Last Post truepenny  
              Started by Stanfillirenfro, Today, 07:23 AM
              1 response
              4 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by cmtjoancolmenero, Yesterday, 03:58 PM
              2 responses
              22 views
              0 likes
              Last Post cmtjoancolmenero  
              Started by olisav57, Yesterday, 07:39 PM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by cocoescala, 10-12-2018, 11:02 PM
              7 responses
              944 views
              0 likes
              Last Post Jquiroz1975  
              Working...
              X