Click here to Login

How to automatically start a downloader every few minutes?

Updated on 2011-03-01 04:10:04

Share |

To do this, you must create a global script.

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

string downloader = "daily stock quotes";
int minutes = 20;
Downloader.StartDownloader("", downloader);
App.Main.Sleep(1000 * 60 * minutes);

- Set the "downloader" variable to the item name and the "minutes" variable to the number of minutes to wait between requests.


You can add the script to the bookmark panel so you can quickly start and stop it.
Selecting "Settings" in the menu, then click on "Add current script to bookmark panel".

Note that if your downloader is stored under a category, then you will have to change the line:

Downloader.StartDownloader("", downloader);


Downloader.StartDownloader("category name", downloader);

one review (Log in)

Other how-to articles

How to plot support and resistance lines automatically

How to automate the data downloading process

How to automatically draw Fibonacci Retracement for each new stock?

How to automatically arrange charts?

How to debug a downloader

How to download earnings calendar data for various stocks

How to improve the performance of QuantShare databases?

How to add a trading indicator to a chart

How to dynamically update the settings of an indicator

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

Copyright 2024
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.