OPEN-SOURCE SCRIPT

SMA Proximity Signal with Trend Table

Atualizado
Summary of the Script:
This Pine Script is designed to provide a variety of technical analysis signals based on Simple Moving Averages (SMAs) and market trends across different timeframes. The script combines multiple indicators, such as the SMA crossover, proximity conditions, and trend analysis, along with visual markers and support/resistance lines. Below is a detailed breakdown of the key features:

The script detects crossovers between SMA1 and SMA2 and SMA1 and SMA3, marking them with green circles exactly at the crossover price level (not on the candles).
The crossover events are identified using ta.crossover and ta.crossunder functions.
Additional circles are drawn when other SMAs are in proximity (narrow stage)
Elephant Candle Pattern:

The script identifies "Elephant Candles" based on a large candle body relative to the overall size of the candle, using the condition where the candle body is at least 80% of the total candle size and at least 1.5 times the average candle size.
These candles are marked with an elephant emoji 🐘 at the top of the candle.
Trend Analysis Across Multiple Timeframes:

The script calculates the trend for different timeframes using the SMA20 of each timeframe:
5m, 15m, 1h, 4h, and 1D
It compares the current SMA20 to its previous value to determine whether the trend is Up, Down, or Flat.
Notas de Lançamento
Visualization:
SMA Plots: The SMAs are plotted as lines with different colors.
Crossover Markers: Green circles are placed exactly at the price level of the SMA crossovers.
Proximity Signals: Green circles are used to indicate when the SMAs are flat and close.
Support/Resistance Lines: Red vertical lines are drawn when the price is near support or resistance levels.
Trend Table: A table in the top-right corner shows the trend across multiple timeframes, with color-coding for each trend direction.
Candlestick analysisChart patternsCycles

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal