Indicator · Pine Script v4 · Own pane

LOKEN Bullish MCDX v2.2

by kdricha0602· code credited to LOKEN94

A separate-pane money-flow oscillator that is a custom variant of the MCDX indicator, written in Pine version 4.

View on GitHub

GitHub stars1on the repository
Pine versionv4older, still runs
Lines of code153
Settings6inputs
LicenceMIT
Last update2 weeks ago14 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 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

153 lines of Pine Script v4 from indicators/mcdx-loken-indicator.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

mcdx-loken-indicator.pine
// © LOKEN94
//
// Custom version based of [M2J] Indicator | MCDX
// 
// 
// 
// Changes:
// No more useless Retaillers Money, no more counter intuitive color.  
// Added uneditable black solid line at the bottom to hide negative Banker histogram.

//@version=4
study("LOKEN 𓃓 (v4) BULLISH MCDX v2.2", "𓃓",precision=2)


RSIBaseBanker       = input(50,  "Banker Base",           minval = 10)
RSIPeriodBanker     = input(50,  "Banker RSI Period",     minval = 10)
RSIBaseHotMoney     = input(30,  "Hot Money RSI Base",    minval = 10)
RSIPeriodHotMoney   = input(40,  "Hot Money RSI Period",  minval = 10)
SensitivityBanker   = input(1.5, "Sensitivity Banker",    minval = 0.1, step = 0.1)
SensitivityHotMoney = input(0.7, "Sensitivity Hot Money", minval = 0.1, step = 0.1)

rsi_function(sensitivity, rsiPeriod, rsiBase) =>
    rsi = sensitivity * (rsi(close, rsiPeriod) - rsiBase)
    if rsi > 20
        rsi := 20
    else if rsi < 0
        rsi := 0
    rsi 

rsi_Banker   = rsi_function(SensitivityBanker,   RSIPeriodBanker,   RSIBaseBanker)
rsi_HotMoney = rsi_function(SensitivityHotMoney, RSIPeriodHotMoney, RSIBaseHotMoney)

plot(rsi_HotMoney, "Hot Money", #00026d17, 3, plot.style_area)
plot(rsi_Banker,   "Banker",    color=rsi_Banker>0?#84afc9:#84afc900, linewidth=4, style=plot.style_histogram)
hot=plot(rsi_HotMoney,display=display.none,editable=false)
bank=plot(rsi_Banker,display=display.none,editable=false)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

hotma2=rma(rsi_HotMoney,2)
bankma2=sma(rsi_Banker,2)
hotma7=rma(rsi_HotMoney,7)
bankma7=ema(rsi_Banker,7)
hotma31=rma(rsi_HotMoney,31)
bankma31=ema(rsi_Banker,31)
//plot(hotma2)
//plot(hotma7)
//plot(bankma2)
//plot(bankma7)
//plot(hotma31)
//plot(bankma31)
hotma=ema(((hotma2*34)+(hotma7*33)+(hotma31*33))/100,2)
bankma=sma(((bankma2*70)+(bankma7*20)+(bankma31*10))/100,1)
hotsignal=rma(hotma,2)
banksignal=rma(bankma,4)
hotline=plot(hotma,style=plot.style_line,color=hotma>hotsignal?#00ff0a:#ff0014,transp=75, title="Hot Money MA",display=display.all,editable=false)
bankline=plot(bankma,style=plot.style_line,color=bankma>banksignal or bankma>bankma[1]?#00ff0a:#ff881e30,transp=25, title="Banker MA",display=display.all,editable=false)
hotline2=plot(hotsignal,style=plot.style_line,color=hotma>hotsignal?#00ff0a:#ff881e,transp=75, title="Hot Money MA2",display=display.all,editable=false)
bankline2=plot(banksignal,style=plot.style_line,color=banksignal<0.1?#000000:#ff881e80,transp=50, title="Banker MA2",display=display.all,editable=true)
//
fill(hotline,hotline2, color=hotma>hotsignal?#00ff0a:#ff0014,transp=85, title="Fill : Hot-Money MA")
fill(bankline,bankline2, color=bankma>banksignal?#00ff0a00:#ff9800,transp=85, title="Fill : Banker MA")
fill(hotline,hot, color=rsi_HotMoney>hotma?#00ff0a40:#9b0000,transp=50, title="Fill : HOT")

//
hbma=vwma(((rsi_HotMoney*10)+(hotma*35)+(hotsignal*15)+(bankma*35)+(banksignal*5))/100,1)
major=wma(hbma,9)
lowma2=sma(rsi_Banker/2,1)
lowma3=sma(rsi_Banker/3,1)
lowma4=sma(rsi_Banker/4,1)
lowma5=sma(rsi_Banker/5,1)
lowma6=sma(rsi_Banker/6,1)
lowma7=sma(rsi_Banker/7,1)
lowmaster=sma(((lowma2*1)+(lowma3*1)+(lowma4*1)+(lowma5*1)+(lowma6*1)+(lowma7*1))/6,1)
lowamp=sma(((lowma2*1)+(lowma3*1)+(lowma4*1)+(lowma5*1)+(lowma6*1)+(lowma7*1))/1,1)
//LOW2=plot(lowma2)
//LOW3=plot(lowma3)
//LOW4=plot(lowma4)
//LOW5=plot(lowma5)
//LOW6=plot(lowma6)
//LOW7=plot(lowma7)
lowampsignal=ema(lowamp,31)
LOWAMP2=plot(lowampsignal,display=display.none,editable=false)
lowmsignal=ema(((lowmaster*90)+(lowamp*10))/100,7)
LOWM2=plot(lowmsignal,display=display.none,editable=false)


GMA=plot(major,color=hbma>8.5?#00862c:#9b0000,transp=80,display=display.none,editable=false)
HBMA=plot(hbma,style=plot.style_line,linewidth=3,color=hbma>major and hbma>8.5?#00862c60:#e5d75c60,transp=5, title="Up-Trend",display=display.none,editable=true,trackprice=false)
HBMA2=plot(hbma,style=plot.style_line,linewidth=3,color=hbma>8.5?na:#9b000060,transp=5, title="Down-Trend",display=display.all,editable=true,trackprice=false)
tracker=plot(hbma,style=plot.style_stepline,linewidth=1,color=hbma>8.5?#00862c:#bb0000,transp=50, title="Trend Tracker",display=display.all,editable=true,trackprice=true)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
h1 = hline(8.5, "Bullish Confirmation Line", color=#002fb030, linestyle=hline.style_solid, editable = true)
//h2 = hline(-0.4598, "Mask", color=#000000, linestyle=hline.style_solid, linewidth=4, editable = true)

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Crossing signals
//
topsignals = crossunder(bankma, banksignal) and rsi_Banker < 15 and rsi_HotMoney > 10 and banksignal>8 

downtrendsignal = crossunder(hotma, hotsignal)
uptrendsignal = crossover(hotma, hotsignal)
   
bullishsignals = crossover(rsi_Banker, 8.5) and
   rsi_HotMoney[0] > 17 and
   bankma>banksignal and
   hotma>hotsignal and
   rsi_Banker[2]<6 and
   rsi_Banker[5]<5 and
   rsi_Banker[24]<12
   
bearishsignals = crossunder(rsi_Banker, 8.5) and
   rsi_HotMoney[0] < 18 and
   bankma<banksignal and
   hotma<hotsignal and
   rsi_Banker<5
   
entrysignals = crossover(rsi_HotMoney, 16) and
   rsi_Banker>0 and
   rsi_HotMoney[3]<15 and
   rsi_HotMoney[10]<13 and
   rsi_HotMoney[20]<13
   
climax = crossover(hbma, 19)

pump = crossover(rsi_Banker,hbma)

bottom = crossunder(rsi_HotMoney,hbma)

greed = crossover(lowampsignal,hbma) and lowampsignal>12 and rsi_Banker>8.5

long = crossunder(lowampsignal,banksignal) and lowampsignal<10
//
ploff = 0
plot(downtrendsignal  ? hbma[0] + ploff : na, title="Downtrend signal",style=plot.style_circles, color=#ff0000, linewidth=2,transp=0, display=display.all, editable=false)
plot(uptrendsignal  ? hbma[0] + ploff : na, title="Uprend signal",style=plot.style_circles, color=#73ff00, linewidth=2,transp=0, display=display.all, editable=false)

//
plotshape(bullishsignals  ? 0[0] - ploff : na, title="Bullish signal 𓃓", text="𓃓", style=shape.labeldown, location=location.absolute, size=size.tiny, color=#81d9ff50, textcolor=#000000, offset=0, transp=0, display=display.all, editable=true)
plotshape(topsignals  ? rsi_HotMoney[0] + ploff : na, title="Pull-back signal ⤼", text="⤼", style=shape.labelup, location=location.absolute, size=size.tiny, color=#9e004500, textcolor=#000000, offset=0, transp=0, display=display.all, editable=true)

plotshape(bearishsignals  ? hbma[0] + ploff : na, title="Bearish signal 𓃾", text="𓃾", style=shape.labelup, location=location.absolute, size=size.tiny, color=#ff000050, textcolor=#ffffff, offset=0, transp=0, display=display.all, editable=true)
plotshape(entrysignals  ? hbma[0] + ploff : na, title="Entry signal 𓄀", text="𓄀", style=shape.labeldown, location=location.absolute, size=size.tiny, color=#00862c50, textcolor=#000000, offset=0, transp=0, display=display.all, editable=true)

plot(rsi_Banker,   "Retest Candles",    color=banksignal>bankma and rsi_Banker>0?#c1510060:na, linewidth=4, style=plot.style_histogram)
plot(rsi_Banker, "Pump Candles", color=rsi_Banker>hbma?#00ff0a:na,transp=70, linewidth=4, style=plot.style_histogram)
plot(rsi_Banker, "Down Candles", color=rsi_Banker<rsi_Banker[1] and rsi_Banker<rsi_Banker[2] and rsi_Banker[1]<rsi_Banker[2] and rsi_Banker<rsi_Banker[3] and rsi_Banker<rsi_Banker[4] and rsi_Banker[3]<rsi_Banker[4] and rsi_Banker[6]>8.5 and rsi_Banker<10?#000000:na,transp=40, linewidth=4, style=plot.style_histogram)
plot(rsi_Banker, "Dump Candles", color=rsi_Banker<rsi_Banker[1]/1.75?#ff0000:na,transp=40, linewidth=4, style=plot.style_columns)

plotshape(climax  ? hbma[0] + ploff : na, title="Oversold signal ᅐ", text="ᅐ", style=shape.labelup, location=location.absolute, size=size.tiny, color=#ff000050, textcolor=#000000, offset=0, transp=0, display=display.all, editable=true)
plotshape(bottom  ? hbma[0] + ploff : na, title="Lower Low signal ⤷", text="⤷", style=shape.labeldown,location=location.absolute, size=size.tiny, color=#ffffff00, textcolor=#000000, offset=0, transp=0, display=display.all, editable=true)

plotshape(greed  ? hbma[0] + ploff : na, title="Sell signal 💲", text="💲", style=shape.labelup,location=location.absolute, size=size.tiny, color=#ff000070, textcolor=#00862c, offset=0, transp=0, display=display.all, editable=true)
plotshape(long  ? lowampsignal[0] + ploff : na, title="Long signal $", text="$", style=shape.labeldown,location=location.absolute, size=size.tiny, color=#00862c00, textcolor=#00862c, offset=0, transp=0, display=display.all, editable=true)

Overview

LOKEN Bullish MCDX v2.2 rescales two RSI readings into a Banker series, drawn as a histogram, and a Hot Money series, drawn as an area, each clamped to a fixed range. Several smoothed moving-average lines and fills mark when each series is rising or falling. Base level, RSI period and sensitivity can be changed for both series.

Details

Published by

kdricha0602 on GitHub

Code credit

LOKEN94, as written in the script's header

Type

Indicator, Pine Script v4

Draws

Separate pane below the chart

Markets

Stocks

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

pythontemporaltrading

Settings

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

SettingTypeDefaultVariable
Banker Baseint50RSIBaseBanker
Banker RSI Periodint50RSIPeriodBanker
Hot Money RSI Baseint30RSIBaseHotMoney
Hot Money RSI Periodint40RSIPeriodHotMoney
Sensitivity Bankerfloat1.5SensitivityBanker
Sensitivity Hot Moneyfloat0.7SensitivityHotMoney
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

Money Flow Index

by everget
947 stars

Calculates the standard Money Flow Index (MFI) oscillator alongside an exponential moving average signal line in a separate pane. The script visually highlights trend conditions through dynamic ribbon filling, optional difference histogram bars, and overbought

Indicator v4 Oscillators & momentumVolume
Updated 11 days ago · GPL-3.0 GitHub repository of Money Flow Index

Commitment Gauge

by harryguiacorn
220 stars

This indicator measures directional momentum by evaluating candlestick body proportions and volume over a user-defined lookback window. It computes the ratio of candle body to total range, weights the cumulative value by volume and absolute body size, and dete

Indicator v4 VolumeCandlestick patterns
Updated 1 year ago · None stated GitHub repository of Commitment Gauge

Aggregate Signal

by capissimo
114 stars

This indicator builds an aggregate oscillator in a separate pane. It scales open, high, low, close, and volume into a 0 to 1 range, then averages scaled readings from MACD, a MACD histogram, RSI, stochastic, CCI, momentum, OBV, a directional index, volume-weig

Indicator v4 Oscillators & momentumVolume Repaints
Updated 1 year ago · None stated GitHub repository of Aggregate Signal

This indicator calculates the Bill Williams Market Facilitation Index as the high-low range divided by volume, or zero when volume is zero. It compares the index and volume with the previous bar and assigns one of four zones: green for both rising, fade for bo

Indicator v6 VolumeOscillators & momentum
Updated 4 weeks ago · Apache-2.0 GitHub repository of Bill Williams Market Facilitation Index

PPO ATR Bands

by cryptorife
75 stars

PPO ATR Bands plots a percentage price oscillator in a separate pane. It compares a Hull average of typical price with a volume-weighted exponential average of Parabolic SAR, then scales three true-range bands around the slow average into matching oscillator l

Indicator v4 Oscillators & momentumMoving averages
Updated 3 years ago · GPL-3.0 GitHub repository of PPO ATR Bands

Chaikin Oscillator

by be-thomas
65 stars

Calculates the Chaikin Oscillator by taking the difference between a fast exponential moving average and a slow exponential moving average of the Accumulation/Distribution line. It plots the resulting line in a separate pane alongside a dashed zero reference l

Indicator v4 Oscillators & momentumVolume
Updated 5 days ago · GPL-3.0 GitHub repository of Chaikin Oscillator

More Oscillators & momentum 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