// stock data from url
stocks = http("query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.historicaldata where symbol='YHOO' and startDate='" << date("y-0m-0d", -6@months) << "' and endDate='today'&format=json&diagnostics=true&env=http://datatables.org/alltables.env", filter=[Close, Date])
// plot prices
ListPlot(stocks(query, results, quote, *, Close), labels=date(stocks(query, results, quote, *, Date), "M3 d"), width=600, height=300, color=purple, gridDash=[10, 2], grid=[5, 2], numbers=[5, 2], ticks=[1, 1], flipAxis=1)