Trinity ADX + EMA Scalper

15 985
**Trinity ADX + EMA Scalper – User Guide**

This indicator combines an ADX trend background with an EMA-based scalping system. It shows trend strength and direction through chart background color while generating Buy and Sell signals based on price crossing an EMA.

**Adding the Indicator**
Open the Pine Editor in TradingView, paste the full script, click “Add to chart,” and save it under your preferred name. It runs as an overlay on the main price chart.

**ADX Background**
The background changes color based on the ADX value and the relationship between +DI and -DI:
- When ADX is above the Strong level (default 20) and +DI is above -DI, the background turns green (bullish).
- When ADX is above the Strong level and -DI is above +DI, the background turns red (bearish).
- When ADX is above the White level (default 15) but below the Strong level, the background turns white (weaker or developing trend).
- Below the White level the background stays clear.

You can turn the background off entirely with the “Show ADX Background” input.

**EMA and High/Low Lines**
The indicator plots an EMA (default length 20) along with the highest and lowest close over a selectable lookback (default 8 bars). These lines help visualize the short-term range and the moving average used for signals. You can hide all three lines with the “Show EMA / Highest / Lowest” toggle.

**Buy and Sell Signals**
A Buy arrow appears when price crosses above the EMA and the previous close was below the current close.
A Sell arrow appears when price crosses below the EMA and the previous close was above the current close.

Signals can be filtered in two ways:
- **Filter Signals with ADX Trend** – Buy signals only appear when +DI is above -DI; Sell signals only appear when -DI is above +DI.
- **Only Signal when ADX > Strong Level** – Signals only appear when ADX is above the Strong level (default 20).

You can turn all arrows off with “Show Buy / Sell Arrows.” Arrow size is adjustable (Tiny, Small, or Normal).

**Optional ADX Lines**
You can display the +DI, -DI, and ADX lines directly on the chart. Note that these values are on a different scale from price, so enabling them may compress the price scale. Horizontal lines mark the White and Strong ADX levels when the lines are shown.

**ADX Status Label**
An optional label appears on the last bar showing the current ADX value and whether the direction is Bull, Bear, or Neutral. You can turn this label off if you prefer a cleaner chart.

**Alerts**
Two alerts are available:
- Trinity Buy
- Trinity Sell

Create an alert from the indicator’s alert conditions to receive notifications when a signal appears (after any filters you have enabled).

**Recommended Settings**
- Start with the default ADX length of 14 and EMA length of 20.
- Enable “Filter Signals with ADX Trend” if you want signals to align with the background color.
- Use “Only Signal when ADX > Strong Level” on higher timeframes to reduce noise.
- Keep the ADX lines hidden unless you specifically need to see the DI values.
- Adjust the background transparency in the color inputs if the colors feel too strong or too faint.

**Notes**
The ADX calculation uses Wilder’s smoothing method matching the original logic. All features are optional and can be toggled independently so you can run the indicator as a pure background, a pure signal system, or both together.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.