Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time entry

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

    Time entry

    I am using a time indicator. see attached pic. Click image for larger version

Name:	Time Indicator.jpg
Views:	52
Size:	120.4 KB
ID:	1117256 I am trying to build a strategy that will enter an order at the start time in strategy builder. What would I need to use in the conditions? Click image for larger version

Name:	Time Indicator conditions.jpg
Views:	46
Size:	138.4 KB
ID:	1117257 Thx

    #2
    When the indicator prints at the time entered submit order.

    Comment


      #3
      Hello JTizz,

      Thank you for your post.

      I'm unfamiliar with this pariticular indicator and am unsure if it has exposed plots that give a particular time that could be compared with a DateTime in the Strategy Builder. I would advise reaching out to the folks at Ninza.co as it appears they're the ones that developed this particular indicator, as they would be most familiar with the code and whether or not it supplies plots that can be used with the Strategy Builder.

      Please let us know if we may be of further assistance to you.
      Kate W.NinjaTrader Customer Service

      Comment


        #4
        Dou you have any links or info what an exposed plot is?

        Comment


          #5
          Found it on NT website thx

          Comment


            #6
            Her is Ninza's reply:
            You can rely on the Signal_Times below to build your own strategy.
            • Signal_Time1: 1 = during trading time, 0 = out of trading time
            • Signal_Time2: 1 = during trading time, 0 = out of trading time
            • Signal_Time3: 1 = during trading time, 0 = out of trading time

            Comment


              #7
              With that info the answer to my original question? Thx

              Comment


                #8
                Hello JTizz,

                Thank you for your reply.

                From their response it looks like you can't compare the current time - the indicator simply returns a value of 1 if the current time is within trading time and 0 if it is not. So, what you'd want to do would be dependent on whether you just want to take a single trade during a trading time period as defined by the indicator properties, or if you want the strategy to be able to continuously trade if the initial trade is exited before that trading period is over.

                If you just want it to limit the trades to the defined trading periods, you could just add a condition to your entries for the signal times:

                if (SignalTime1 ==1)
                {
                //first signal time entry logic goes here
                }
                if (SignalTime2 == 1)
                {
                // second signal time entry logic goes here
                }
                if (SignalTime3 == 1)
                {
                // third signal time entry logic goes here
                }

                If you want it to only take one trade at the beginning of each signal time period, you could use a bool for each period - for example, create a Bool called Signal1Entered and set it to false, then when you enter the first time for the first signal period, check whether it is false before entering, then set it to true after the entry is made. Then, once SignalTime1 == 0 again, set it back to false for the next day's entry at that time.

                Please let us know if we may be of further assistance to you.
                Kate W.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by pdennis, Today, 07:43 AM
                0 responses
                1 view
                0 likes
                Last Post pdennis
                by pdennis
                 
                Started by b16_aln, Today, 05:15 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by Negustrader, Today, 01:01 AM
                1 response
                15 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by soon123, Yesterday, 10:50 PM
                1 response
                9 views
                0 likes
                Last Post NinjaTrader_ChrisL  
                Started by liadmz, Yesterday, 03:39 PM
                1 response
                13 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X