First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
include_once 'ofc_bar_base.php';
|
||||
|
||||
class candle_value
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
function __construct( $high, $open, $close, $low )
|
||||
{
|
||||
$this->high = $high;
|
||||
$this->top = $open;
|
||||
$this->bottom = $close;
|
||||
$this->low = $low;
|
||||
}
|
||||
|
||||
function set_colour( $colour )
|
||||
{
|
||||
$this->colour = $colour;
|
||||
}
|
||||
|
||||
function set_tooltip( $tip )
|
||||
{
|
||||
$this->tip = $tip;
|
||||
}
|
||||
}
|
||||
|
||||
class candle extends bar_base
|
||||
{
|
||||
function __construct($colour, $negative_colour=null)
|
||||
{
|
||||
$this->type = "candle";
|
||||
parent::__construct();
|
||||
|
||||
$this->set_colour( $colour );
|
||||
if(!is_null($negative_colour))
|
||||
$this->{'negative-colour'} = $negative_colour;
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue