OPEN-SOURCE SCRIPT

SCALPING 5MIN MACD & RSI with EMA20-200

X: iman_inj
1. MACD (Moving Average Convergence Divergence)

Displays as a four-colored histogram.

Lime Green: Bullish momentum increasing.

Green: Bullish momentum decreasing.

Maroon: Bearish momentum increasing.

Red: Bearish momentum decreasing.


A zero line is added for trend confirmation.



2. RSI (Relative Strength Index)

Calculates RSI values based on the closing price.

Detects overbought (above 70) and oversold (below 25) zones.

Signals:

"Buy" appears when RSI crosses above 25 (oversold condition).

"Sell" appears when RSI crosses below 70 (overbought condition).




3. Buy/Sell Signal Placement

Signals are plotted on the MACD histogram to align RSI conditions with MACD momentum.

Green Labels: Indicate "Buy" opportunities.

Red Labels: Indicate "Sell" opportunities.
BTCChart patternsExponential Moving Average (EMA)ITCitclongmacdiRelative Strength Index (RSI)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer