screamer.js
    Preparing search index...

    Interface TripleBarrierOptions

    The settings of TripleBarrier by name, for TripleBarrier({ ... }).

    interface TripleBarrierOptions {
        barrierUnit?: string;
        horizon?: number;
        lower?: number;
        upper?: number;
        volSpan?: number;
    }
    Index
    barrierUnit?: string

    Unit of upper and lower: "fraction" of the entry price (0.02 = 2%), "price" (an absolute amount), or "vol" (multiples of the volatility expected over the horizon).

    "fraction"

    horizon?: number

    Steps after each entry in which a barrier can be reached. It is also the vertical barrier, and the delay of the output.

    20

    lower?: number

    Distance of the lower barrier below the entry price, in barrier_unit. 0 turns it off. Below 1 with barrier_unit="fraction". With "price" or "vol", a lower level at or below 0 is never reached, so the barrier is off.

    0.0

    upper?: number

    Distance of the upper barrier above the entry price, in barrier_unit. 0 turns it off.

    0.0

    volSpan?: number

    Span of the exponentially weighted standard deviation of one-step log returns that sets the "vol" barriers. Must be greater than 1. Used only with barrier_unit="vol".

    100.0