Indicator · Pine Script v6 · On the chart

FusionBell Pro

by saleh-ato· code credited to Saleh_Toodarvari

This indicator combines four technical tools into a unified scoring system directly on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code103
Settings11inputs
LicenceNone statedfile: MPL-2.0
Last update1 year ago16 Jun 2025

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 indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

103 lines of Pine Script v6 from FusionBell Pro/FusionBell-Pro.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

FusionBell-Pro.pine
// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Saleh_Toodarvari

//@version=6
indicator("FusionBell Pro", shorttitle="FBellPro", overlay=true, max_labels_count=500)

// ---------------------------------------------------
// 1. سیگنال روند (Trend Signal) با استفاده از میانگین‌های متحرک
// ---------------------------------------------------
fastLength = input.int(12, title="طول میانگین سریع (Fast MA)", minval=1)
slowLength = input.int(26, title="طول میانگین کند (Slow MA)", minval=1)
fastMA = ta.ema(close, fastLength)
slowMA = ta.ema(close, slowLength)
trendSignal = fastMA > slowMA ? 1 : -1

// (امکان نمایش میانگین‌ها در نمودار)
showMAs = input.bool(false, "نمایش میانگین‌های متحرک؟")
plot(showMAs ? fastMA : na, title="Fast EMA", color=color.blue, linewidth=1)
plot(showMAs ? slowMA : na, title="Slow EMA", color=color.orange, linewidth=1)

// ---------------------------------------------------
// 2. سیگنال شتاب (Momentum) با استفاده از RSI
// ---------------------------------------------------
rsiPeriod = input.int(14, title="دوره RSI", minval=1)
rsiLower  = input.int(40, title="آستانه پایین RSI", minval=1, maxval=100)
rsiUpper  = input.int(60, title="آستانه بالا RSI", minval=1, maxval=100)
rsiValue  = ta.rsi(close, rsiPeriod)
rsiSignal = rsiValue < rsiLower ? 1 : rsiValue > rsiUpper ? -1 : 0

// ---------------------------------------------------
// 3. سیگنال MACD
// ---------------------------------------------------
macdFast      = input.int(12, title="طول سریع MACD", minval=1)
macdSlow      = input.int(26, title="طول کند MACD", minval=1)
macdSignalLen = input.int(9, title="طول سیگنال MACD", minval=1)
macdLine      = ta.ema(close, macdFast) - ta.ema(close, macdSlow)
macdSignalLine = ta.ema(macdLine, macdSignalLen)
macdSignal    = macdLine > macdSignalLine ? 1 : -1

// ---------------------------------------------------
// 4. سیگنال نوار‌های بولینگر (Bollinger Bands Signal)
// ---------------------------------------------------
bbLength = input.int(20, title="طول Bollinger Bands", minval=1)
bbMult   = input.float(2.0, title="ضریب انحراف معیار Bollinger", step=0.1)
bbBasis  = ta.sma(close, bbLength)
bbDev    = bbMult * ta.stdev(close, bbLength)
upperBB  = bbBasis + bbDev
lowerBB  = bbBasis - bbDev
bbSignal = close < lowerBB ? 1 : close > upperBB ? -1 : 0

// ---------------------------------------------------
// ترکیب 4 سیگنال به یک امتیاز کلی (Aggregated Signal)
// امتیاز ممکن است از -4 (خیلی خرید) تا +4 (خیلی فروش) باشد.
// ---------------------------------------------------
aggSignal = trendSignal + rsiSignal + macdSignal + bbSignal

// تفسیر امتیاز: بر اساس قدر مطلق امتیاز، زون‌های معاملاتی تعیین می‌شوند.
var string zoneName = ""
var color zoneColor = na

if aggSignal == 0
    zoneName := "Hover (Neutral)"
    zoneColor := color.gray
else if aggSignal < 0
    // نواحی خرید
    if math.abs(aggSignal) == 1
        zoneName := "Buy Start Zone"
        zoneColor := color.new(color.green, 80)
    else if math.abs(aggSignal) == 2
        zoneName := "Buy Decision Zone"
        zoneColor := color.new(color.green, 60)
    else if math.abs(aggSignal) == 3
        zoneName := "Buy Golden Zone"
        zoneColor := color.new(color.green, 40)
    else if math.abs(aggSignal) >= 4
        zoneName := "Buy Glut Zone"
        zoneColor := color.new(color.green, 20)
else  // (aggSignal > 0) نواحی فروش
    if math.abs(aggSignal) == 1
        zoneName := "Sell Start Zone"
        zoneColor := color.new(color.red, 80)
    else if math.abs(aggSignal) == 2
        zoneName := "Sell Decision Zone"
        zoneColor := color.new(color.red, 60)
    else if math.abs(aggSignal) == 3
        zoneName := "Sell Golden Zone"
        zoneColor := color.new(color.red, 40)
    else if math.abs(aggSignal) >= 4
        zoneName := "Sell Glut Zone"
        zoneColor := color.new(color.red, 20)

// ---------------------------------------------------
// نمایش زون به صورت پس‌زمینه رنگی در نمودار (اگر منطقه خنثی نباشد)
// ---------------------------------------------------
bgcolor(zoneName != "Hover (Neutral)" ? zoneColor : na)

// ---------------------------------------------------
// برچسب نمایش نام زون و امتیاز کل در بالای هر بار
// ---------------------------------------------------
var label zoneLabel = label.new(bar_index, high, "", style=label.style_label_down, color=zoneColor, textcolor=color.white, size=size.large)
label.set_xy(zoneLabel, bar_index, high)
label.set_text(zoneLabel, zoneName + " (" + str.tostring(aggSignal) + ")")
label.set_color(zoneLabel, zoneColor)

Overview

FusionBell Pro evaluates an exponential moving average trend crossover, relative strength index levels, MACD line positioning against its signal line, and Bollinger Band breakouts. The script aggregates these individual signals into a composite score ranging from -4 to +4 to identify market zones such as neutral, decision, or strong continuation zones. Users can customize indicator lengths, thresholds, and toggle the display of moving average lines.

Details

Published by

saleh-ato on GitHub

Code credit

Saleh_Toodarvari, as written in the script's header

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Trend, Oscillators & momentum, Moving averages, Volatility & bands

Markets

Any symbol

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

pinescriptindicatorpinescript-indicators

Settings

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

SettingTypeDefaultVariable
طول میانگین سریع (Fast MA)int12fastLength
طول میانگین کند (Slow MA)int26slowLength
نمایش میانگین‌های متحرک؟boolfalseshowMAs
دوره RSIint14rsiPeriod
آستانه پایین RSIint40rsiLower
آستانه بالا RSIint60rsiUpper
طول سریع MACDint12macdFast
طول کند MACDint26macdSlow
طول سیگنال MACDint9macdSignalLen
طول Bollinger Bandsint20bbLength
ضریب انحراف معیار Bollingerfloat2.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

114 stars

ADX Strategy (original) is an overlay indicator that identifies trend-following trade signals using the Average Directional Index (ADX) combined with a Simple Moving Average filter. A long signal is generated when the ADX rises above a user-defined trend level

Indicator v4 TrendOscillators & momentum
Updated 1 year ago · None stated GitHub repository of ADX Strategy (original)
56 stars

Double Screened Decision is a multi-timeframe trend and momentum indicator overlaid directly on the price chart. It dynamically selects a higher timeframe based on the active chart resolution to evaluate higher-timeframe MACD, Bollinger Bands, RSI, and Stochas

Indicator v5 TrendMoving averages Repaints
Updated 4 months ago · None stated GitHub repository of Double Screened Decision
24 stars

This indicator plots Bollinger Bands on the price chart alongside a baseline moving average to identify trend-aligned swing setups. It calculates trend bias by comparing the Bollinger Bands basis to a customizable moving average, such as a 200 EMA. Trade signa

Indicator v5 Volatility & bandsOscillators & momentum
Updated 4 years ago · MPL-2.0 GitHub repository of Bollinger Band Swing

Index Intraday Analyst

by chris-c-thomas
14 stars

Index Intraday Analyst overlays CBOE cash indices such as SPX, NDX, RUT, and DJX. It plots a multi-EMA ribbon, a session-anchored TWAP with standard-deviation bands, and session levels such as prior-day high, low, and close, the opening range, and the high and

Indicator v6 TrendOscillators & momentum
Updated 6 months ago · MIT GitHub repository of Index Intraday Analyst

RePaNoCHa V4

by wocclyl
9 stars

RePaNoCHa V4 is an overlay alert indicator that plots a Tillson T3 moving average on the price chart and colors it by whether the line is rising or falling. It combines that slope with a range filter, ADX, parabolic SAR, RSI, and MACD to mark long and short si

Indicator v4 TrendOscillators & momentum
Updated 7 years ago · MIT GitHub repository of RePaNoCHa V4

More indicators

Trade Your Charts With a Regulated Broker

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

Compare brokers