 |
QuantShare
2010-10-28 14:42:01
0
|
|
Best Answer
The item you are using is just a downloader. The real-time version of QuantShare is not yet released.
If you want to download the last quotes automatically every 1 minute:
- Open the downloader (Intraday Data for NSE Stocks) and set the field "Number of past days" to 1.
- Select Tools -> Script Editor.
- Create a new file
- Type the following formula:
int seconds = 60;
while(true)
{
Chart chart = Charts.GetSelectedChart();
if(chart != null)
{
string[] symbols = new string[1];
symbols[0] = chart.SymbolName;
string[] fields = new string[1];
fields[0] = "Number of past days=1";
Downloader.DownloadData("", "Intraday Data for NSE Stocks", true, symbols, fields);
App.Main.Sleep(1000 * seconds); // Do not change this - It may crash your PC if you change it
Charts.GetSelectedChart().Update();
}
else
{
App.Main.Sleep(1000 * seconds); // Do not change this - It may crash your PC if you change it
}
}
- Save it (File -> Save)
- Select Settings -> Add Current Script to Bookmark Panel
- In the Bookmarket Panel (under the Menu, Symbols and Drawing buttons) double click on the script to execute it. Double click again to stop it.
|
(by QuantShare,
uploaded several months ago)
No notes
|
|
|