Rev | Line | |
---|
[7849] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | include_once 'ofc_bar_base.php';
|
---|
| 4 |
|
---|
| 5 | class candle_value
|
---|
| 6 | {
|
---|
| 7 | /**
|
---|
| 8 | *
|
---|
| 9 | */
|
---|
| 10 | function candle_value( $high, $open, $close, $low )
|
---|
| 11 | {
|
---|
| 12 | $this->high = $high;
|
---|
| 13 | $this->top = $open;
|
---|
| 14 | $this->bottom = $close;
|
---|
| 15 | $this->low = $low;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | function set_colour( $colour )
|
---|
| 19 | {
|
---|
| 20 | $this->colour = $colour;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | function set_tooltip( $tip )
|
---|
| 24 | {
|
---|
| 25 | $this->tip = $tip;
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
| 28 |
|
---|
| 29 | class candle extends bar_base
|
---|
| 30 | {
|
---|
| 31 | function candle($colour, $negative_colour=null)
|
---|
| 32 | {
|
---|
| 33 | $this->type = "candle";
|
---|
| 34 | parent::bar_base();
|
---|
| 35 |
|
---|
| 36 | $this->set_colour( $colour );
|
---|
| 37 | if(!is_null($negative_colour))
|
---|
| 38 | $this->{'negative-colour'} = $negative_colour;
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.