OPEN-SOURCE SCRIPT

BRN TENDENCIAL (Alta / Baixa / Neutro) — com Perfis

546
Objectively classify the market into 3 states: Bullish, Bearish, or Neutral.

Classic Ribbon Detection:

Bullish = MA1 > MA2 > MA3 > MA4 > MA5 > MA6

Bearish = MA1 < MA2 < MA3 < MA4 < MA5 < MA6

Neutral = when the alignment is not met (crossovers/disorder).

Optional simple mode (toggle): consider only MA1 and MA6 (Bullish = MA1 > MA6, Bearish = MA1 < MA6).

Pre-configured profiles (A/B/C) to recognize only large movements with one click.

Full manual configuration: choose the type of average (SMA/EMA/HMA/VWMA) and the periods for each of the 6 MAs.

Optional "big moves" filters:

Minimum Ribbon width (%) to require "fan opening";

Minimum MA1 slope (%) to require strong direction.

Clean visuals for quick reading: 6 Ribbon lines, background mask by state, optional bar color, and fill between MA1 and MA6.

Trademark start markers (UP/DOWN/NEUTRAL) to identify transitions on the chart.

Practical use: Serves as a trend filter for your strategies/signals (e.g., only trade Long on Highs, Short on Lows).

Focus on controlled neutrality: With profiles and filters, it prioritizes Neutral in noise and only marks a trend when the movement is truly significant.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.