module Bar:sig
..end
type
t = private {
|
stamp : |
|
op : |
|
hi : |
|
lo : |
|
cl : |
|
vo : |
|
wap : |
|
has_gaps : |
|
n_trades : |
val n_trades : t -> int
val has_gaps : t -> bool
val wap : t -> Price.t
val vo : t -> Volume.t
val cl : t -> Price.t
val lo : t -> Price.t
val hi : t -> Price.t
val op : t -> Price.t
val stamp : t -> Core.Std.Time.t
module Fields:sig
..end
include Raw_bar_intf.S
val create : stamp:Core.Std.Time.t ->
op:Price.t ->
hi:Price.t ->
lo:Price.t ->
cl:Price.t ->
vo:Volume.t -> wap:Price.t -> has_gaps:bool -> n_trades:int -> t
val (=) : t -> t -> bool
val combine : t -> bar:t -> t
combine t ~bar
combines t
and bar
into a new bar whose size is the
sum of the sizes of these bars, e.g. two 1 min bars become a 2 min bar.val pp : Format.formatter -> t -> unit
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
combine t ~bar
combines t
and bar
into a new bar whose size is the
sum of the sizes of these bars, e.g. two 1 min bars become a 2 min bar.