OPEN-SOURCE SCRIPT
Flow_RSI_StochRSI_Volume

//version=5
indicator("Flow + RSI + StochRSI + Volume - Panel", overlay=false)
// ---- Inputs
cmfLen = input.int(20, "CMF Length", minval=2)
rsiLen = input.int(14, "RSI Length", minval=2)
srsiLen = input.int(14, "StochRSI Base Length", minval=2)
kLen = input.int(3, "%K Smoothing", minval=1)
dLen = input.int(3, "%D Smoothing", minval=1)
// ---- CMF (세력 유입)
rng = high - low
mfm = rng != 0 ? ((close - low) - (high - close)) / rng : 0.0
mfv = mfm * volume
cmf = ta.sma(mfv, cmfLen) / ta.sma(volume, cmfLen)
// ---- RSI
rsi = ta.rsi(close, rsiLen)
// ---- StochRSI (%K, %D)
rsiLL = ta.lowest(rsi, srsiLen)
rsiHH = ta.highest(rsi, srsiLen)
base = (rsiHH - rsiLL) != 0 ? (rsi - rsiLL) / (rsiHH - rsiLL) * 100.0 : 0.0
k = ta.sma(base, kLen)
d = ta.sma(k, dLen)
// ---- Volume (거래량)
vol = volume
vma20 = ta.sma(volume, 20)
// ---- Plots (색상 지정 없이 기본값 사용)
plot(cmf, title="CMF (Flow)")
hline(0, "CMF Zero")
plot(rsi, title="RSI")
hline(30, "RSI 30")
hline(50, "RSI 50")
hline(70, "RSI 70")
plot(k, title="StochRSI %K")
plot(d, title="StochRSI %D")
plot(vol, title="Volume", style=plot.style_histogram)
plot(vma20, title="Vol MA20")
indicator("Flow + RSI + StochRSI + Volume - Panel", overlay=false)
// ---- Inputs
cmfLen = input.int(20, "CMF Length", minval=2)
rsiLen = input.int(14, "RSI Length", minval=2)
srsiLen = input.int(14, "StochRSI Base Length", minval=2)
kLen = input.int(3, "%K Smoothing", minval=1)
dLen = input.int(3, "%D Smoothing", minval=1)
// ---- CMF (세력 유입)
rng = high - low
mfm = rng != 0 ? ((close - low) - (high - close)) / rng : 0.0
mfv = mfm * volume
cmf = ta.sma(mfv, cmfLen) / ta.sma(volume, cmfLen)
// ---- RSI
rsi = ta.rsi(close, rsiLen)
// ---- StochRSI (%K, %D)
rsiLL = ta.lowest(rsi, srsiLen)
rsiHH = ta.highest(rsi, srsiLen)
base = (rsiHH - rsiLL) != 0 ? (rsi - rsiLL) / (rsiHH - rsiLL) * 100.0 : 0.0
k = ta.sma(base, kLen)
d = ta.sma(k, dLen)
// ---- Volume (거래량)
vol = volume
vma20 = ta.sma(volume, 20)
// ---- Plots (색상 지정 없이 기본값 사용)
plot(cmf, title="CMF (Flow)")
hline(0, "CMF Zero")
plot(rsi, title="RSI")
hline(30, "RSI 30")
hline(50, "RSI 50")
hline(70, "RSI 70")
plot(k, title="StochRSI %K")
plot(d, title="StochRSI %D")
plot(vol, title="Volume", style=plot.style_histogram)
plot(vma20, title="Vol MA20")
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.