quant.fact
The value of a Quantlab fact for the bar's machine day, once it is known by the end of the bar; na before that.
quant.fact(fact: simple string, machine: simple string = "dsequence") -> string
Parameters
factsimple string: Fact id, for example "regime" or "breakDirection".machinesimple string: Machine id; the built-in D-sequence by default.
Example
regime = quant.fact("regime")
plotshape(regime == "U", "Up regime", shape.triangleup, location.belowbar)