Click here to Login

                                                   Error/Failure when adding a time-based task


Josh McCormick
2020-10-29 11:22:22

I've created a simple time-based task that triggers every five minutes, from 08:00 through 23:55, Monday through Friday. But when I add (or update) the task, I get a pop-up error (see screenshot). I click OK and then it says "Task updated". But the task never runs and the Task Manager shows the task but with no "Next run time". Any thoughts on what might be going wrong here?


Josh McCormick

Josh McCormick
2020-11-06 12:26:39


Bump. I'd really like to make use of scheduled events.

The error also triggers when QuantShare starts up. The QuantShare v3.7.0 loading banner says, "Loading plugin : TaskManager". The pop-up says, "Error 21544: (1733,7): CalendarTrigger:". I click on OK and QuantShare continues loading.

2020-11-09 09:39:40


Best Answer
Try to reduce the number of minutes (set it to 0 only) and see if this works. Also try using a single hour and see if that helps.
I am not sure what is causing this but in some Windows versions, some users have reported similar issue.

Josh McCormick
2020-11-15 20:07:26


Success! I was able to schedule an event at two different times per hour before it triggered the error. So for a script to fire off every five minutes (during market hours), it looks like I'll have to... schedule it across six tasks? Okay. I think I can live with the workaround.

Thanks for the assist!
Josh McCormick

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Advancing-Declining-Unchanged volume for NYSE, AMEX and NASDAQ
Tony Cooper Volatility Strategy #3 - VIX Contango - Tweaked v1.0
Relative Performance Chart - Dynamic assets and index
Market Timing Rules - Used to construct profitable trading strate...
Market Composite Index based on the Sharpe Ratio

How-to Lessons
How to change volume bar colors when the price closes down
How to speed up watchlist and screener plug-ins when working with...
How to download new quotes when selecting a chart
How to quickly add a ticker symbol
How to get trading orders from a portfolio programmatically

Related Forum Threads
How can I avoid UAE prompts when launching from the QS Task Manag...
adding indicators to panes
Task Manager will not start
how to add buy condition when the color change
How to force simulator to close open positions when data ends?

Blog Posts
9 mistakes you should avoid when backtesting an end-of-day stock ...
Adding Trading Indicators and Formulas to a Chart
Running QuantShare on Amazon's EC2 Cloud & Automate Strategies Si...
6 techniques to improve the performance of your stock trading str...
How to measure market strength with the composite tool

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2021
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.