Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can't get strategy to stop at end day via strategy builder

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

    Can't get strategy to stop at end day via strategy builder



    Hello,

    This is driving me crazy. I simply want a strategy to stop trading indefinitely after a certain time in the afternoon until the strategy itself is disabled and reenabled on a non-time based chart running on bar close RTH hours template. I have tried creating conditions of a disable bool that becomes true after a certain time which works as intended. HOWEVER, when the strategy is enabled when the RTH market is closed, EVEN with a state.realtime condition added, the bool always becomes true at the start of the RTH session even though the strategy was not running the previous afternoon.


    For example, stop trading time is set to >= 3:30pm 5pm<, and strategy is running on RTH, and the strategy is enabled at 8pm (when the RTH session is closed), when the RTH market opens the next morning, the trading disable bool becomes true despite the strategy not having been enabled during the afternoon. It is as if NT ignores state.realtime when strategies are enabled when the market is closed. It appears the bool will become true based on historical data.


    How do I solve this very simple issue? Is this a bug in NT?

    #2
    Hello burmaz,

    It sounds like the condition is working as intended if I understand the description. When you re enable the strategy after the session it will still re process that time and set the bool to true, you would have to prevent the strategy from working historically to avoid that. You can add a condition checking if the state is realtime to prevent the condition from working historically.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    19 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    119 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    45 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X