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

Example

regime = quant.fact("regime")
plotshape(regime == "U", "Up regime", shape.triangleup, location.belowbar)