OPEN-SOURCE SCRIPT

CHiLo — Custom HiLo (SMA/EMA, Activator, Shading, Auto-Decimals)

283
CHiLo is a clean Hi/Lo trend read with SMA/EMA options, a HiLo vs. HiLo Activator mode, optional band shading, and a right-side HiLo marker with automatic decimals based on the symbol. Optional Buy/Sell labels mark state flips. Inspired by the broader trend-following literature and practitioners; in Brazil, educator Hulisses “Tio Huli” Dias is a notable voice popularizing trend following.

What it does

CHiLo plots a Hi/Lo state with two modes:
  • HiLo (classic high/low bands)
  • HiLo Activator (activator-style behavior)

It includes:
  • SMA/EMA selection
  • Optional shading between Hi/Lo bands
  • Optional Buy/Sell labels on state flips
  • HiLo marker (auto-decimals from the symbol’s tick size)


Goal: deliver a fast, visual trend context that you can pair with your own risk rules and confirmations.

How to use

  1. Add the indicator and choose Mode (HiLo / Activator) and MA type (SMA/EMA).
  2. Tune Period (and Offset if needed). Higher = smoother (fewer flips); lower = more responsive.
  3. Toggle Shading to emphasize the envelope.
  4. Toggle Buy/Sell labels if you want flip markers.
  5. Use the HiLo marker on the right to read the current level (auto-formatted).


Inputs (quick reference)

  • Period / Offset — sensitivity vs. delay.
  • Type — HiLo or HiLo Activator.
  • MA Type — SMA (steadier) or EMA (snappier).
  • HiLo Style — Points or Line.
  • Shading & Transparency — highlight the band area.
  • Buy/Sell Labels — on/off.
  • HiLo Marker — size and horizontal offset (decimals automatic).


Notes & credits

  • Educational use only; not financial advice.
  • For best results, combine with position sizing, stops, and regime filters.

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.