Strategy · Pine Script v6 · On the chart

Multi Indicator Score

by pineforge-4pass· code credited to PineForge contributors 2026

A strategy that builds a score from minus three to plus three using RSI against 50, price against an EMA, and price against the Bollinger mid line.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code62
Settings4inputs
LicenceApache-2.0
Last update6 days ago23 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

Source Code

62 lines of Pine Script v6 from validation/ta-multi-indicator-score-composite-01/strategy.pine, published under Apache-2.0. Keep the author's credit and licence lines when you reuse it.

strategy.pine
// This Pine Script® code is licensed under Apache-2.0
// SPDX-License-Identifier: Apache-2.0
// © PineForge contributors 2026
//
// PF probe 30 — multi-indicator scoring composite
// Purpose: parity test for additive `score` accumulator driven by RSI / EMA /
// BB indicator branches (`if/else if` mutation of an int) for entry threshold.
//
//@version=6
strategy("Multi Indicator Score", overlay=true, initial_capital=1000000, process_orders_on_close=false, pyramiding=1, commission_type=strategy.commission.percent, commission_value=0, slippage=0, default_qty_type=strategy.fixed, default_qty_value=1)

// === Inputs ===
rsiLen   = input.int(14, "RSI Length", minval=1)
maLen    = input.int(20, "MA Length", minval=1)
bbLen    = input.int(20, "BB Length", minval=5)
bbMult   = input.float(2.0, "BB Mult", step=0.1)

// === Indicators ===
rsiVal = ta.rsi(close, rsiLen)
emaVal = ta.ema(close, maLen)
[bbMid, bbUpper, bbLower] = ta.bb(close, bbLen, bbMult)
atrVal = ta.atr(14)

// === Score system: -3 to +3 ===
score = 0

// RSI
if rsiVal > 50
    score += 1
else if rsiVal < 50
    score -= 1

// Price vs EMA
if close > emaVal
    score += 1
else
    score -= 1

// BB position
if close > bbMid
    score += 1
else
    score -= 1

// === Signals based on score threshold ===
longCond  = score >= 2 and score[1] < 2
shortCond = score <= -2 and score[1] > -2

if longCond
    strategy.entry("Long", strategy.long)
if shortCond
    strategy.entry("Short", strategy.short)

// Exit when score neutralizes
if strategy.position_size > 0 and score <= 0
    strategy.close("Long")
if strategy.position_size < 0 and score >= 0
    strategy.close("Short")

plot(emaVal, "EMA", color=color.blue)
plot(bbUpper, "BB Upper", color=color.gray)
plot(bbLower, "BB Lower", color=color.gray)

Overview

Multi Indicator Score enters long when the score reaches two or more and short when it reaches minus two or lower. Positions close when the score returns to neutral. RSI, EMA and band settings are adjustable. The EMA and outer bands are drawn on the price chart. No stop loss.

Details

Published by

pineforge-4pass on GitHub

Code credit

PineForge contributors 2026, as written in the script's header

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Oscillators & momentum, Trend

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

  • The strategy enters trades without a stop loss

Topics

algorithmic-tradingbacktestingparitypine-scriptpinescriptquantitative-financetest-corpustradingview

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
RSI Lengthint14rsiLen
MA Lengthint20maLen
BB Lengthint20bbLen
BB Multfloat2.0bbMult
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.

Similar Pine Scripts

330 stars

2 EMA/SMA + RSI Strategy [Alorse] combines three configurable moving averages with a short-period Relative Strength Index filter. It plots fast, slow, and trend moving averages on the price chart. Long entries trigger when the fast moving average is above the

Strategy v4 TrendOscillators & momentum
Updated 2 months ago · None stated GitHub repository of 2 EMA/SMA + RSI Strategy [Alorse]

Acrypto - Weighted Strategy

by AlbertoCuadra
318 stars

This strategy plots on the price chart and opens long or short positions when a weighted score from MACD, Stochastic RSI, RSI, Supertrend and a moving-average crossover exceeds a user-set trigger. Each component has its own weight and candle delay. Entries can

Strategy v5 TrendOscillators & momentum
Updated 3 years ago · Custom licence GitHub repository of Acrypto - Weighted Strategy
285 stars

Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish

Strategy v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Strategy
218 stars

This strategy generates trading signals based on a selectable momentum engine, supporting MACD, RSI, Stochastic, or Rate of Change. Entries trigger on signal crosses, zero-line crosses, or threshold crosses, with an optional moving average trend filter. Risk m

Strategy v6 Oscillators & momentumTrend
Updated 3 months ago · None stated GitHub repository of Momentum Strategy Template

255 EMA Strategy

by hasnocool
106 stars

255 EMA Strategy combines an exponential moving average with Average True Range bands and standard MACD crossovers to generate entry signals. Drawn directly on the price chart, it plots the central 255 EMA along with upper and lower volatility envelopes. Trade

Strategy v4 Moving averagesOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 255 EMA Strategy

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers