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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        49 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        15 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        21 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X