function Quant::execute in Quant 7
Execute the quant for a given period
Parameters
$period: The timeframe for fetch data for. Options: 1) A UNIX timestamp. Data will be fetched from the current time back until the provided timestamp. 2) A string compatable with strtotime(), ie, '-2 weeks'. Data will be fetched from the current time until the provided time. 3) An array containing two of the previous options, where the first value will be the start time, and the last will be the end time.
File
- plugins/
Quant.inc, line 72
Class
- Quant
- Quant class
Code
function execute($period) {
// Set the time period
$this
->set_period($period);
// Determine the amount of days in the period
$this
->set_days();
// Build the data
$this->data = new QuantData($this, $this
->execute_query());
// Determine the chart plugin to use
$plugin = quant_get_chart_plugin();
// Create and build a chart
$this->chart = new $plugin->plugin['class']($this, $plugin);
$this->chart
->build();
}