Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter at a specific time?

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

    Enter at a specific time?

    Can a trade entry have a specific time? For example, enter long at 8:59:50 at 1041?

    To be exact - I would like to have the script enter a trade at 50 seconds into a certain time period. Not at the end of a close bar.

    Thank you

    #2
    Market orders trade almost immediately, so if you mean triggering a trade, sure, just add a conditional statement to your trade logic trigger that also checks the current time.

    You could use the C# .NET methods such as DateTime, but NT provides TimeTo() in the library...



    There's an time example in the reference samples section here on the forum.

    Comment


      #3
      rbrahy, it is definitely possible to do that. What you might want to look into is using a timer object to fire off events. You can check what the time is every OnBarUpdate() and then just calculate how long until your desired entry time and then have the timer fire that far away. It would also be helpful to look into DateTime objects and how to manipulate them.
      AustinNinjaTrader Customer Service

      Comment


        #4
        Perfect... Thank you for the information and resource. I appreciate it.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        368 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        571 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X