Click here to Login





                                                   intraday snapshot data

  0

0
august mezzetta
2011-07-20 20:30:23


I'm an expeienced trader but illiterate programmer. I asked support how to get a current quote on the E-mini S&P 500 Sep 2011 contract symbol /ESU!.
I cint seconds = 10;
while(true)
{
Chart[] charts = Charts.GetAllCharts();
for(int i=0;i < charts.Length;i++)
{
if(!charts[i].IsHistorical)
{
GetNewData(charts[i]);
}
}
App.Main.Sleep(1000 * seconds); // Do not change this - It may crash your PC if you change it
}

#functions#
void GetNewData(Chart chart)
{
if(chart == null)
{
return;
}
string[] symbols = new string[1];
symbols[0] = chart.SymbolName;
Downloader.DownloadData("", "Intraday Data for Futures Contracts", true, symbols, null, DownloadComplete, chart);
}

void DownloadComplete(Object obj)
{
Chart chart = (Chart)obj;
if(chart != null)
{
//MessageBox.Show("Chart to be updated: " + chart.SymbolName);
chart.Update();
}
}
I was told there are erors on line 12 and line 36. Can someone help me? Thank you. August



QuantShare
2011-07-21 03:16:27

  0

Best Answer
The script works with no errors. Make sure that the first line is:
int seconds = 10;

What error message are you getting?



No more messages
0




Reply:

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"










    QuantShare

    Trading Items
    Intraday Data for US Stocks
    Forex Intraday Data
    One-Minute Data for Intraday Futures
    Historical Intraday Data for U.S. Stocks
    5-Minute Historical Intraday Data for Forex, Indices and Futures/...

    How-to Lessons
    How to speed up watchlist and screener plug-ins when working with...
    How to export trading data to a CSV file
    How to use QuantShare with Metastock data
    How to display Forex economic calendar data in a chart
    How to hide stock data outside of regular trading hours

    Related Forum Threads
    NSE intraday data
    Intraday Data for NSE Symbols
    how to download Intraday data for NSE Nifty - S&P CNX Nifty
    Adv. Money Management & Intraday data
    Trailing stop value with Intraday data

    Blog Posts
    6 New Ways to Download Free Intraday Data for the U.S. Stock Mark...
    Backtesting trading strategies using intraday data
    6 ways to download free intraday and tick data for the U.S. stock...
    6 places to download historical intraday Forex quotes data for fr...
    Day Trading: A trading system that combines intraday and EOD 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 © 2025 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.