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; } }