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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X