PINE LIBRARY

LinTrendLib

Library "LinTrendLib"
TODO: add library description here

ema_trend(twz, ema_length, cross_ratio, multiplier)
  Given Bullish / Bearish / side-way market jugement
  Parameters:
    twz (int)
    ema_length (simple int)
    cross_ratio (float)
    multiplier (float)
  Returns: 1 --> bullish trend, -1 --> bearish trend, 0 --> sideway market
bar_types

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer