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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X