Indicator · Pine Script v4 · On the chart

Cerebr Sirius

by jerryinyang· code credited to Jerry

Cerebr Sirius is a multi-timeframe trend and momentum indicator overlay that combines exponential moving average trend analysis with VuManChu WaveTrend logic and Money Flow Index.

View on GitHub

GitHub stars5on the repository
Pine versionv4older, still runs
Lines of code156
Settings20inputs
LicenceNone statedfile: MPL-2.0
Last update2 years ago12 May 2024

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

156 lines of Pine Script v4 from All Works/Vu Man Chu/VuManChu System study.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

VuManChu System study.pine
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Jerry

//@version=4
study("Cerebr Sirius", overlay=true)

//PIP CALCULATOR
//{
pipMult = input(1, "**Point-Pip Converter**", step = 1, group = "General Settings")

pip() => syminfo.mintick * (pow(10, pipMult))
DistanceToPip(_price1, _price2) => abs(_price1 - _price2) / pip()
//}

//*************** MOVING AVERAGE ***************//
//{

// INPUTS
//{
maSrc = input(close, "Moving Average Source", group="Moving Averages Settings")
maUseHTF = input(false, "Use HTF MA", group="Moving Averages Settings")

emafRes = input("15", "HTF Fast MA Timeframe", input.resolution, group="Moving Averages Settings")
emasRes = input("240", "HTF Slow MA Timeframe", input.resolution, group="Moving Averages Settings")

emaflen = input(50, "Fast EMA", input.integer, group="Moving Averages Settings")
emaslen = input(200, "Slow EMA", input.integer, group="Moving Averages Settings")

htfemaflen = input(20, "HTF Fast EMA", input.integer, group="Moving Averages Settings")
htfemaslen = input(50, "HTF Slow EMA", input.integer, group="Moving Averages Settings")

pbRadius = input(5, "Pullback Zone Radius", group="Moving Averages Settings") * pip()
//}

// CALCULATION
//{
hftEmaF = security(syminfo.tickerid, emafRes, ema(maSrc, htfemaflen), barmerge.gaps_off, barmerge.lookahead_off)
hftEmaS = security(syminfo.tickerid, emasRes, ema(maSrc, htfemaslen), barmerge.gaps_off, barmerge.lookahead_off)

fastEma = maUseHTF ? hftEmaF : ema(maSrc, emaflen)
slowEma = maUseHTF ? hftEmaS : ema(maSrc, emaslen)

pbZn_top = fastEma + pbRadius
pbZn_bott = fastEma - pbRadius
//}

//SIGNALS
//{
isPback = (high <= pbZn_top and high >= pbZn_bott ) or ( low <= pbZn_top and low >= pbZn_bott) or (high >= pbZn_top and low <= pbZn_bott)

maLong = fastEma > slowEma and isPback
maShort = fastEma < slowEma and isPback
//}

//}
//SIGNALS ==> maLong, maShort

//*************** VUMANCHU ***************//
//{

// INPUTS 
//{

vmcUseHTF = input(false, "Use Higher Timeframe", group="VUMANCHU SETTINGS")
vmcRes = input("240", "Higher Timeframe", input.resolution, group="VUMANCHU SETTINGS")
useVMCObOS = input(false, "Use VMC Ob/Os? ", group="VUMANCHU SETTINGS")

// WaveTrend
wtChannelLen = input(9, title = 'WT Channel Length', type = input.integer, group="VUMANCHU SETTINGS")
wtAverageLen = input(12, title = 'WT Average Length', type = input.integer, group="VUMANCHU SETTINGS")
wtMASource = input(hlc3, title = 'WT MA Source', type = input.source, group="VUMANCHU SETTINGS")
wtMALen = input(3, title = 'WT MA Length', type = input.integer, group="VUMANCHU SETTINGS")

// WaveTrend Overbought & Oversold lines
obLevel = 53 //input(53, title = 'WT Overbought Level 1', type = input.integer, group="VUMANCHU SETTINGS")
obLevel2 = 60 //input(60, title = 'WT Overbought Level 2', type = input.integer, group="VUMANCHU SETTINGS")
obLevel3 = 100 //input(100, title = 'WT Overbought Level 3', type = input.integer, group="VUMANCHU SETTINGS")
osLevel = -53 //input(-53, title = 'WT Oversold Level 1', type = input.integer, group="VUMANCHU SETTINGS")
osLevel2 = -60 //input(-60, title = 'WT Oversold Level 2', type = input.integer, group="VUMANCHU SETTINGS")
osLevel3 = -75 //input(-75, title = 'WT Oversold Level 3', type = input.integer, group="VUMANCHU SETTINGS")


// RSI+MFI
rsiMFIperiod = input(60,title = 'MFI Period', type = input.integer, group="VUMANCHU SETTINGS")
rsiMFIMultiplier = input(150, title = 'MFI Area multiplier', type = input.float, group="VUMANCHU SETTINGS")
rsiMFIPosY = input(2.5, title = 'MFI Area Y Pos', type = input.float, group="VUMANCHU SETTINGS")

//}

// FUNCTIONS 
//{

 // RSI+MFI
f_rsimfi(_period, _multiplier, _tf) => security(syminfo.tickerid, _tf, sma(((close - open) / (high - low)) * _multiplier, _period) - rsiMFIPosY)  

 // WAVETREND
f_wavetrend(src, chlen, avg, malen, tf) =>
    tfsrc = security(syminfo.tickerid, tf, src)
    esa = ema(tfsrc, chlen)
    de = ema(abs(tfsrc - esa), chlen)
    ci = (tfsrc - esa) / (0.015 * de)
    wt1 = security(syminfo.tickerid, tf, ema(ci, avg))
    wt2 = security(syminfo.tickerid, tf, sma(wt1, malen))
    wtOversold = wt2 <= osLevel
    wtOverbought = wt2 >= obLevel
    wtCross = cross(wt1, wt2)
    wtCrossUp = wt2 - wt1 <= 0
    wtCrossDown = wt2 - wt1 >= 0
    wtCrosslast = cross(wt1[2], wt2[2])
    wtCrossUplast = wt2[2] - wt1[2] <= 0
    wtCrossDownlast = wt2[2] - wt1[2] >= 0
    [wt1, wt2, wtOversold, wtOverbought, wtCross, wtCrossUp, wtCrossDown, wtCrosslast, wtCrossUplast, wtCrossDownlast]
    
//}

// CALCULATION 
//{

// RSI + MFI Area
rsiMFI = f_rsimfi(rsiMFIperiod, rsiMFIMultiplier, vmcUseHTF ? vmcRes : timeframe.period)

// Calculates WaveTrend
[wt1, wt2, wtOversold, wtOverbought, wtCross, wtCrossUp, wtCrossDown, wtCross_last, wtCrossUp_last, wtCrossDown_last] = 
  f_wavetrend(wtMASource, wtChannelLen, wtAverageLen, wtMALen, vmcUseHTF ? vmcRes : timeframe.period)

//Vumanchu Signals
//Vumanchu Signals
vmcMF = rsiMFI < 0 ? "Short" : "Long"                                 
vmcLong = useVMCObOS ? wtCross and wtCrossUp and wtOversold and wt1 < 0 and wt2 < 0 : wtCross and wtCrossUp and wt1 < 0 and wt2 < 0 
vmcShort = useVMCObOS ? wtCross and wtCrossDown and wtOverbought and wt1 > 0 and wt2 > 0 : wtCross and wtCrossDown and wt1 > 0 and wt2 > 0
 
// }

//}
//SIGNALS ==> vmcMF ("Long" or "Short")
//TRIGGERS ==> vmcLong vmcShort

//*************** ENTRY RULES ***************//
//{

goLong = maLong and vmcMF == "Long" and vmcLong
goShort = maShort and vmcMF == "Short" and vmcShort

//}

//*************** PLOTS ***************//
//{
plot(fastEma)
plot(slowEma, color = color.yellow)
plot(pbZn_top, color = color.new(color.purple, 20))
plot(pbZn_bott, color = color.new(color.purple, 20))

plotshape(goLong, "Long", shape.triangleup, location.belowbar, color.lime, size = size.small)
plotshape(goShort, "Short", shape.triangledown, location.abovebar, color.maroon, size = size.small)

//}

Overview

Cerebr Sirius calculates fast and slow exponential moving averages to identify trend direction alongside configurable pullback zones. Users can adjust moving average sources, select higher timeframe resolutions, tune wave trend channel parameters, and modify Money Flow Index periods directly from the settings panel.

Details

Published by

jerryinyang on GitHub

Code credit

Jerry, as written in the script's header

Type

Indicator, Pine Script v4

Draws

On the price chart

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.

Settings

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

SettingTypeDefaultVariable
**Point-Pip Converter**int1pipMult
Moving Average SourcesourceclosemaSrc
Use HTF MAboolfalsemaUseHTF
HTF Fast MA Timeframetimeframe15emafRes
HTF Slow MA Timeframetimeframe240emasRes
Fast EMAint50emaflen
Slow EMAint200emaslen
HTF Fast EMAint20htfemaflen
HTF Slow EMAint50htfemaslen
Pullback Zone Radiusint5pbRadius
Use Higher TimeframeboolfalsevmcUseHTF
Higher Timeframetimeframe240vmcRes
Show all 20 settings
SettingTypeDefaultVariable
Use VMC Ob/Os? boolfalseuseVMCObOS
WT Channel Lengthint9wtChannelLen
WT Average Lengthint12wtAverageLen
WT MA Sourcesourcehlc3wtMASource
WT MA Lengthint3wtMALen
MFI Periodint60rsiMFIperiod
MFI Area multiplierfloat150rsiMFIMultiplier
MFI Area Y Posfloat2.5rsiMFIPosY
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

947 stars

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

Indicator v4 Moving averagesOscillators & momentum
Updated 12 days ago · GPL-3.0 GitHub repository of Adaptive RSI Moving Average
228 stars

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

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of TradersPost Trading Checklist

Daily Trend Filter

by agutinbaigo28
147 stars

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

Indicator v5 TrendOscillators & momentum
Updated 6 weeks ago · MIT GitHub repository of Daily Trend Filter

AAPP

by capissimo
114 stars

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

Indicator v4 Moving averagesTrend
Updated 1 year ago · None stated GitHub repository of AAPP

Signal Strategy 15m

by tripolskypetr
72 stars

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

Indicator v5 TrendMoving averages
Updated 5 days ago · MIT GitHub repository of Signal Strategy 15m
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

More Trend scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers