PINE LIBRARY
Updated

PatternHelpers

131
Library "PatternHelpers"

method update(atr, h, l, c, period)
  Namespace types: WilderAtr
  Parameters:
    atr (WilderAtr)
    h (float)
    l (float)
    c (float)
    period (int)

method push(buf, o, h, l, c, t, idx, max_len)
  Namespace types: CandleBuffer
  Parameters:
    buf (CandleBuffer)
    o (float)
    h (float)
    l (float)
    c (float)
    t (int)
    idx (int)
    max_len (int)

method gap_candles(buf, prev_end_idx, next_start_idx)
  Namespace types: CandleBuffer
  Parameters:
    buf (CandleBuffer)
    prev_end_idx (int)
    next_start_idx (int)

quantile_rail(vals, upper)
  Parameters:
    vals (array<float>)
    upper (bool)

has_acceptable_coverage(values, upper_bounds, lower_bounds)
  Parameters:
    values (array<float>)
    upper_bounds (array<float>)
    lower_bounds (array<float>)

has_acceptable_coverage_const(values, upper, lower)
  Parameters:
    values (array<float>)
    upper (float)
    lower (float)

has_low_directional_drift(closes, upper, lower)
  Parameters:
    closes (array<float>)
    upper (float)
    lower (float)

has_balanced_rotation(values, shape_width)
  Parameters:
    values (array<float>)
    shape_width (float)

has_no_dominant_run(values, shape_width)
  Parameters:
    values (array<float>)
    shape_width (float)

ols_regression(y, x, origin_x)
  Parameters:
    y (array<float>)
    x (array<int>)
    origin_x (int)

residual_rail(highs_or_lows, indices, intercept, slope, origin_idx, upper)
  Parameters:
    highs_or_lows (array<float>)
    indices (array<int>)
    intercept (float)
    slope (float)
    origin_idx (int)
    upper (bool)

WilderAtr
  Fields:
    prev_close (series float)
    atr_val (series float)
    count (series int)

CandleBuffer
  Fields:
    opens (array<float>)
    highs (array<float>)
    lows (array<float>)
    closes (array<float>)
    times (array<int>)
    indices (array<int>)
    start_idx (series int)
Release Notes
deleted

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.