indicator · own pane · open source

Composite Buy Sell Score

Deepwick · @deepwickv1Updated 2 Oct 2026▲ 0 users
Running…
Loading chart…

About

Composite Buy/Sell Score — blends 5 weighted components: RSI position (25), MACD histogram sign (25), DMI bias (25), ADX trend strength (25), Stochastic position (25). Range -100 to +100.

  • Above +50 = strong buy bias; below -50 = strong sell bias.
  • Filter trades by requiring |score| > 25.

Source code

//@version=5
indicator("Composite Buy Sell Score", overlay=false)
rsi = ta.rsi(close, 14)
[m, s, h] = ta.macd(close, 12, 26, 9)
macdH = h
[plus, minus, adx] = ta.dmi(14, 14)
score = (rsi - 50) / 2 + (macdH > 0 ? 25 : -25) + (plus > minus ? 25 : -25) + (adx > 25 ? 25 : 0)
hline(50, "Strong buy", color=color.gray)
hline(-50, "Strong sell", color=color.gray)
p_Score = plot(score, "Score", color=color.blue, linewidth=2)
alertcondition(ta.crossover(score, 50), "Strong buy", "Composite score above +50")
alertcondition(ta.crossunder(score, -50), "Strong sell", "Composite score below -50")

Comments

No comments yet.

Sign in to comment.