Click here to Login





How to execute a script at regular intervals

Updated on 2011-11-12 03:41:50

Share |

Let us first create the script that we will run at regular intervals.

- Select "Tools" then "Script Editor"
- Select "File" then "New"
- Type the script name then click on "OK"
- Type the following line:

Downloader.StartDownloader("[name]");

- Replace [name] by the download item name. Here, we want to execute a downloader at regular intervals.
- Save the script by selecting "File" then "Save"

For the execution part, we must create a time-based task.

- Select "Tools" then "Task Manager"
- Click on "Click here to add a task"
- If you want to run the script once an hour then you must do the following actions:

- Click on "Select all hours", "Select all weeks" and "Select all months" then click on "0" under "Minute" panel.

- Under "Script" panel, click on "Add" then select the previously created script
- Under "Task" panel, give a name to this task then click on "Add" to add the task to QuantShare trading software and to the Windows task manager










no reviews (Log in)







Other how-to articles




How to hide stock data outside of regular trading hours





How to get stocks for a particular index using the global script





How to run a screen or a watchlist from a script





How to rename a ticker symbol





How to create a custom trading indicator





How to add a metric in the trading system simulation report





How to get trading orders from a portfolio programmatically





How to perform a basic quantitative analysis using the S&P 500





How to download and use U.S. stocks earnings data







QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright 2017 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
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.