mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-02 13:41:05 -05:00
Tom git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@24 c3eb156b-1dc0-44e1-88ae-e38439141b53
42 lines
658 B
PHP
42 lines
658 B
PHP
<?php
|
|
|
|
include_once 'ofc_bar_base.php';
|
|
|
|
class candle_value
|
|
{
|
|
/**
|
|
*
|
|
*/
|
|
function candle_value( $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 candle($colour, $negative_colour=null)
|
|
{
|
|
$this->type = "candle";
|
|
parent::bar_base();
|
|
|
|
$this->set_colour( $colour );
|
|
if(!is_null($negative_colour))
|
|
$this->{'negative-colour'} = $negative_colour;
|
|
}
|
|
}
|
|
|