1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
Source Code
54 lines of Pine Script v5 from btc_scalping_signals.pinescript, published under MIT. Keep the author's credit and licence lines when you reuse it.
btc_scalping_signals.pinescript
//@version=5
indicator("BTC 1–5 min Scalping Signals 😍🅰️🅱️", overlay=true)
// =======================================================
// 🔔 BTC 1–5 Min Scalping Strategy (Pine Script v5)
// 📈 Developed for short-term crypto scalping (1–5 min)
// 🧠 Logic: EMA crossover + RSI + MACD + Candle direction
// 🛑 DISCLAIMER:
// This script is for educational purposes only.
// It is not financial advice. Use at your own risk.
// =======================================================
// === Inputs
emaFastLen = input.int(5, title="Fast EMA")
emaSlowLen = input.int(13, title="Slow EMA")
rsiLen = input.int(7, title="RSI Length")
rsiBuy = input.int(50, title="RSI Buy Threshold")
rsiSell = input.int(50, title="RSI Sell Threshold")
macdFast = input.int(8, title="MACD Fast")
macdSlow = input.int(21, title="MACD Slow")
macdSig = input.int(5, title="MACD Signal")
// === Indicators
price = close
emaFast = ta.ema(price, emaFastLen)
emaSlow = ta.ema(price, emaSlowLen)
rsi = ta.rsi(price, rsiLen)
[macdLine, signalLine, _] = ta.macd(price, macdFast, macdSlow, macdSig)
// === Conditions
longCond = ta.crossover(emaFast, emaSlow) and rsi > rsiBuy and macdLine > signalLine and close > open
shortCond = ta.crossunder(emaFast, emaSlow) and rsi < rsiSell and macdLine < signalLine and close < open
// === Plotting EMAs
plot(emaFast, color=color.orange, title="EMA Fast")
plot(emaSlow, color=color.blue, title="EMA Slow")
// === Plotting Signals
plotshape(longCond, title="Buy Signal", location=location.belowbar, style=shape.triangleup, size=size.small, color=color.green)
plotshape(shortCond, title="Sell Signal", location=location.abovebar, style=shape.triangledown, size=size.small, color=color.red)
// === Alerts
alertcondition(longCond, title="Buy Alert", message="🟢 BUY Signal (BTC 1-min)")
alertcondition(shortCond, title="Sell Alert", message="🔴 SELL Signal (BTC 1-min)")
// === Draw Labels Once Per Signal (Avoid Clutter)
var label lastLong = na
var label lastShort = na
if (longCond)
lastLong := label.new(bar_index, low, text="BUY 📈", style=label.style_label_up, color=color.green, textcolor=color.white)
if (shortCond)
lastShort := label.new(bar_index, high, text="SELL 📉", style=label.style_label_down, color=color.red, textcolor=color.white)
Overview
A buy appears when the fast EMA crosses above the slow EMA, RSI is above its buy threshold, the MACD line is above its signal line, and the candle closes above its open. A sell uses the opposite crossover, RSI below its sell threshold, MACD below its signal line, and a bearish candle. Lengths and thresholds are inputs. It draws triangle shapes, text labels, and alert conditions, with no exit, stop, or position rules.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Fast EMA
int
5
emaFastLen
Slow EMA
int
13
emaSlowLen
RSI Length
int
7
rsiLen
RSI Buy Threshold
int
50
rsiBuy
RSI Sell Threshold
int
50
rsiSell
MACD Fast
int
8
macdFast
MACD Slow
int
21
macdSlow
MACD Signal
int
5
macdSig
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
The Adaptive RSI Moving Average (ARSIMA) is an overlay indicator that dynamically adjusts its smoothing factor based on the Relative Strength Index (RSI). When the RSI moves toward extreme overbought or oversold conditions, the smoothing factor increases to ma
This indicator scans NSE-listed stocks for momentum signals using Supertrend, multiple EMAs, MACD, and stochastic oscillator. It supports continuous or flip signal modes and displays matching setups in a customizable table at the bottom left of the chart. The
TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi
Calculates market regime conditions by combining RSI, MACD, and ADX/DMI indicators. It evaluates whether the market is in a strong bullish, strong bearish, neutral, or non-trending regime. The script plots a colored line overlaying the close price to reflect t
This indicator plots an adaptive moving average or scaled RSI divergence line directly on the price chart. It calculates dual RSI series to measure momentum divergence, scales the values to the chart's price range, and constructs an adaptive average filtered b
This indicator generates trend-following trade signals on the price chart by combining moving average crossovers with multi-factor filters. It triggers entry alerts when fast and slow EMAs cross in the direction of a baseline trend EMA, confirmed by non-extrem