Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Schedule a strategy to start at 8:00AM

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

    Schedule a strategy to start at 8:00AM

    Hi,

    I would like to enable a strategy at 8:00AM. Is there a way to enable a strategy at a specific time?

    Every day I disable the strategy at 3:50PM. I disable the strategy (within the strategy) using the command Disable();.

    Once the strategy is disabled, how can I enable the strategy the next day at 8:00AM if the strategy is not running?

    One option is to always run the strategy and make the decisions based on time, but I don't want to do that. Disabling the strategy reset all the variables from that day.

    Thank you.

    #2
    I don't think that is possible.

    You should code your strategy to reset all the variables daily if you want to keep it running. (That's what I did).

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ghoul, Today, 06:02 PM
    0 responses
    7 views
    0 likes
    Last Post ghoul
    by ghoul
     
    Started by Barry Milan, Yesterday, 10:35 PM
    6 responses
    18 views
    0 likes
    Last Post Barry Milan  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Started by DJ888, 04-16-2024, 06:09 PM
    4 responses
    13 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by terofs, Today, 04:18 PM
    0 responses
    12 views
    0 likes
    Last Post terofs
    by terofs
     
    Working...
    X