#ifndef __GdCharts_h__ #define __GdCharts_h__ #include #include typedef std::vector< double > ChartPrices; // This draws the small charts visible in TI Pro and other places. See // http://www.trade-ideas.com/VideoHelp/Menu.html?video=Trade-Ideas%20Pro%3A%20Columns%3A%20Charts // for examples. This replaces GifCharts.pas in the Delphi code. // prices should contain a list of prices. *prices.begin() should be the // most recent one will be displayed on the far right of the chart. As we // increment the prices pointer, we will move to the left, and the prices // should be getting older. We will stop when we run out of space on the // chart, or when we run out of prices, which ever comes first. If we run // out of prices, then the left part of the chart will be solid black. // Note, in the delphi code the order of the prices is different. This // seemed like it would be easier for the caller. void createChart(std::string filename, ChartPrices const &prices, int width, int height = 20); #endif