Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Only check logic after certain time

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

    Only check logic after certain time

    Good morning,

    Building a strategy that has a certain time I'd like it to start. Right now I'm using "ToTime(Time[0]) > 060000". So, when I enable the strategy the night before at 8pm I only want it to check the logic after 6am the next morning. The issue is that the strategy won't execute before 6am BUT if the criteria for entry was met overnight it "triggers" a signal which then adjusts the account market position which directly effects my logic for entering new trades. How can I change this so that the strategy can be enabled but the criteria can only be met after a certain hour?

    Thanks so much for the help

    #2
    Hello Bmatarese,

    If you have a variable, such as a bool, that was set after 6:00 and before 23:59, you could reset that variable in a new condition set that checks for the time to be 00:00 (midnight).
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    72 views
    0 likes
    Last Post PaulMohn  
    Working...
    X