Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

Kimchi Premium Strategy

A Pine Script v5 strategy built on RMA or Change (4), RSI (ikp, 12) and Crossover (tot_rsi, 63). It has 2 order rules, 2 entries among them, and trades long and short with the default settings. Exits wait for a signal; there is no stop loss. Each trade is one contract and pays no commission. 10 settings; defaults include Select BTCKRW Market BITHUMB:BTCKRW, Select BTCUSD Market BITSTAMP:BTCUSD and Source close.

Generated from the script's code by a template: every clause is a fact read from the source. Not written by a person or a model, and not taken from the author's description.

Does Kimchi Premium Strategy repaint?
No
No repainting patterns were found in the source. The live replay was not measured: it had no trades to compare.
How did Kimchi Premium Strategy do on BTCUSDT 1D with default settings?
Not measured
It closed no trades there from 26 Jan 2024 to 21 Oct 2026 with the default settings, so there is no result to report. Its entry conditions never all held on this data. It closed no trades on the other markets either. A backtest, not investment advice.
Does Kimchi Premium Strategy run in Pine Script v6?
Not tested
Neither version placed a trade on any of the 8 markets, so there was nothing to compare. The v6 version is shown for reference and is not offered as a download.
Does Kimchi Premium Strategy use a stop loss?
No
Every exit waits for a signal; nothing limits a losing trade before it fires.
Does Kimchi Premium Strategy run in Zeal Terminal?
Yes
It compiles in 22 ms and runs 1,000 bars in 60 ms, in the browser.

BTCUSDT · 1D · default settings

  • Max Level
  • Zero Level
  • Min Level
  • Bull Level
  • Bear Level
  • RSI
  • Winning trade
  • Losing trade
  • Equity
  • Buy and hold
40,00060,00080,000100,000120,000AprJulOct2025AprJulOct2026AprJulOctMax Level$1,000,000$2,025,273Equity from $1,000,000
Binance BTCUSDT 1D candles, 26 Jan 2024 to 21 Oct 2026, 1,000 bars, default settings. Triangles mark entries; circles mark exits. Lines are what the script plots. The live re-run is not offered here: the script requests FX_IDC:USDKRW D, BITHUMB:BTCKRW D, BITSTAMP:BTCUSD D, which this page cannot load in your browser.

Needs FX_IDC:USDKRW D data, not available: not a Binance spot market Needs BITHUMB:BTCKRW D data, not available: not a Binance spot market Needs BITSTAMP:BTCUSD D data, not available: not a Binance spot market Values that depend on it are empty on this chart.

Net profit
0.00%
$0.00
Buy and hold
+102.5%
same period
Closed trades
0
0 won · 0 lost
Profitable
0.0%
of closed trades
Profit factor
—
gross profit ÷ gross loss
Max drawdown
0.00%
$0.00

One run with the author's default settings, $1,000,000 starting capital, commission as the script sets it. A single backtest says little about future results and is not a recommendation. Backtests are simulations on historical data and are not investment advice.

Review

What a careful reader of this script would point out, found by checking the source and the backtest.

  • Check

    No stop loss

    Every exit waits for a signal. Nothing limits a losing trade before the exit condition fires.

  • Check

    No commission

    The backtest assumes free trading. Results on any real exchange will be lower.

  • Note

    No slippage

    Fills are assumed at the exact open price. Add slippage in the properties for a more realistic test.

Settings

Every input the script declares, with its default and what it feeds. Bounds are the ones the script enforces.

SettingDefaultType and rangeFeeds
Select BTCKRW MarketBITHUMB:BTCKRWsymbolbtckrw
Select BTCUSD MarketBITSTAMP:BTCUSDsymbolbtcusd
Resolutiontimeframeusdkrw btckrw btcusd tot_rsi
Sourceclosesourceup down usdkrw btckrw btcusd
Length of RSI4intup down tot_rsi
Length of Inverse Kimchi Premium RSI12intt tot_rsi Inverse Kimchi Premium RSI
Use Combination of Inverse Kimchi Premium RSI ?trueboolline 28
Bull Level63float · min 0 · max 100 · step 1.0rcColor Bull Level bullFillColor longCondition
Bear Level28float · min 0 · max 100 · step 1.0rcColor Bear Level bearFillColor shortCondition
Highlight Bull/Bear Breakouts ?trueboolbullFillColor bearFillColor

What it calculates

  • RMA / Changemath.max(ta.change(src), 0), Length of RSI (4)up · line 17
  • RMA / Change-math.min(ta.change(src), 0), Length of RSI (4)down · line 18
  • RSIikp, Length of Inverse Kimchi Premium RSI (12)t · line 27
  • Crossovertot_rsi, Bull Level (63)longCondition · line 46
  • Crossundertot_rsi, Bear Level (28)shortCondition · line 49

Signal flow

How price data and settings reach the orders. Each box is a name in the script, or several computed the same way; each arrow is a value one of them reads. Hover a box for its members.

closecloseprice datalen1Length of RSIsetting · 4len2Length of Inverse Kimch…setting · 12bullLevelBull Levelsetting · 63bearLevelBear Levelsetting · 28resResolutionsetting · sym_krwSelect BTCKRW Marketsetting · BITHUMB:BTCKRWsym_usdSelect BTCUSD Marketsetting · BITSTAMP:BTCUSDupRMA / Change→ updownRMA / Change→ downtRSI→ tlongConditionCrossover→ longConditionshortConditionCrossunder→ shortConditionrsirsivalueusdkrwusdkrwvaluebtckrwbtckrwvaluebtcusdbtcusdvaluebtcusd_to_krwbtcusd_to_krwvalueikpikpvaluennvaluetot_rsitot_rsivaluercColor, bullFillColor, bearFillColorColourrcColor · bullFillColor +1entry:LongOpen Longstrategy.entryentry:ShortOpen Shortstrategy.entryhline:32Max Levelhlinehline:33Zero Levelhlinehline:34Min Levelhlinehline:35Bull Levelhlinehline:36Bear Levelhlinefill:37Fillfill × 3fill:40Fillfill × 3fill:41Fillfill × 3plot:42Total RSIplotplot:43RSIplotplot:44Inverse Kimchi Premium …plot

Order rules

OrderFires whenBy defaultLine
Open Long longlongConditionOn48
Open Short shortshortConditionOn51

Each order is guarded by the setting shown. “Off” orders never fire unless that setting is switched on.

Does it repaint?

No

No repainting patterns in the source.

Not measuredNo trades to compareThe last 300 bars, from 26 Dec 2025, were fed to the engine as live ticks, but neither the live nor the historical run produced any trades in them, so the replay says nothing either way.
  • ClearHigher-timeframe data3 request.security call(s), none with lookahead on.
  • ClearFuture-bar referencesNo negative history offsets such as close[-1].
  • ClearIntrabar recalculationNo varip, calc_on_every_tick or realtime-only state. Orders are decided once per closed bar.
  • ClearOrder timingOrders fill at the next bar's open, after the signal bar has closed.

The checks read the source; the replay runs it. Together they catch the common causes, not every possible one.

Other markets

Not run on other markets: the script requests FX_IDC:USDKRW D, BITHUMB:BTCKRW D, BITSTAMP:BTCUSD D, and that data is not available here (not a Binance spot market; not a Binance spot market; not a Binance spot market). Its results would rest on empty values.

Similar scripts

Indicators and strategies built from the same calculations, run on BTCUSDT 1D with their own defaults so they can be compared directly.

ScriptSharesTypeNetTradesMax drawdown
Kimchi Premium Strategy this page—v5 strategy0.0%00.0%
Take Profit On Trend v2 (by BHD_Trade_Bot) by BHD_Trade_Botrsi rmav5 strategy+9.4%624.0%
MTF Diagonally Layered RSI - 1 minute Bitcoin Bot [wbburgin] by wbburginrsi rmav5 strategyNo trades on this market
[Pt] Premarket Breakout Strategy by PtGamblerrma rsiv5 strategyNo trades on this market
Crypto rsi cci mf stoch rsi oscillators all in one strategy by SoftKill21rma rsiv4 strategy+1.6%326.8%
Forex Scalping 1min Bollinger Bands, RSI and ADX Trading System by exlux99rsi rmav4 strategy−0.0%30.0%

Upgrade and export

Written in Pine Script v5. The clean-v5 step types the settings and moves when = into if blocks, which v6 requires; it is run before and after like any upgrade.

  • 1 setting uses the untyped input() (line 15). It still compiles in v6; input.int, input.float or input.source state the type.
  • No v6-only features. v6 is not needed to run this script.

Clean v5

Not verified

Neither version placed a trade on any of the 8 markets, so there was nothing to compare.

  • Line 15: input() → input.bool()
⋯bearLevel = input.float(title='Bear Level', defval=28, step=1.0, maxval=100, minval=0)-highlightBreakouts = input(title='Highlight Bull/Bear Breakouts ?', defval=true)+highlightBreakouts = input.bool(title='Highlight Bull/Bear Breakouts ?', defval=true)// Inverse Kimichi Premium RSI Definition⋯

Does it run in Pine Script v6?

Not tested

Neither version placed a trade on any of the 8 markets, so there was nothing to compare. The v6 version is shown for reference and is not offered as a download. It differs from the v5 version by 1 edit.

⋯// © chanu_lev10k-//@version=5+//@version=6strategy("Kimchi Premium Strategy", overlay=false)⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 22 msYes 1,000 bars in 60 msNot measured
PineTSNot testedNot testedNot measured

“Matches TradingView” needs this script's own output exported from TradingView and compared bar by bar, which has not been done for this script. The engine is built on OpenPineScript, whose conformance results are in its conformance report.

Source

Copied verbatim from the author's published script, with its licence header intact. The author may have updated the original since this snapshot.

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/// © chanu_lev10k//@version=5strategy("Kimchi Premium Strategy", overlay=false)// Inputssym_krw = input.symbol(title='Select BTCKRW Market', defval='BITHUMB:BTCKRW')sym_usd = input.symbol(title='Select BTCUSD Market', defval='BITSTAMP:BTCUSD')res = input.timeframe(title='Resolution', defval='')src = input.source(title='Source', defval=close)len1 = input.int(defval=4, title='Length of RSI')len2 = input.int(defval=12, title='Length of Inverse Kimchi Premium RSI')isikp = input.bool(title='Use Combination of Inverse Kimchi Premium RSI ?', defval=true)bullLevel = input.float(title='Bull Level', defval=63, step=1.0, maxval=100, minval=0)bearLevel = input.float(title='Bear Level', defval=28, step=1.0, maxval=100, minval=0)highlightBreakouts = input(title='Highlight Bull/Bear Breakouts ?', defval=true)// Inverse Kimichi Premium RSI Definitionup = ta.rma(math.max(ta.change(src), 0), len1)down = ta.rma(-math.min(ta.change(src), 0), len1)rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))usdkrw = request.security('FX_IDC:USDKRW', res, src)btckrw = request.security(sym_krw, res, src)btcusd = request.security(sym_usd, res, src)btcusd_to_krw = btcusd * usdkrwikp = (btcusd_to_krw / btckrw - 1) * 100ikp_f(res, len1, len2) =>    n = rsi    t = (rsi + ta.rsi(ikp, len2))/2    isikp ? t : ntot_rsi = ikp_f(res, len1, len2)// PlotrcColor = tot_rsi > bullLevel ? #0ebb23 : tot_rsi < bearLevel ? #ff0000 : #f4b77dmaxBand = hline(100, title='Max Level', linestyle=hline.style_dotted, color=color.white)hline(0, title='Zero Level', linestyle=hline.style_dotted)minBand = hline(0, title='Min Level', linestyle=hline.style_dotted, color=color.white)bullBand = hline(bullLevel, title='Bull Level', linestyle=hline.style_dotted)bearBand = hline(bearLevel, title='Bear Level', linestyle=hline.style_dotted)fill(bullBand, bearBand, color=color.new(color.purple, 95))bullFillColor = tot_rsi > bullLevel and highlightBreakouts ? color.green : nabearFillColor = tot_rsi < bearLevel and highlightBreakouts ? color.red : nafill(maxBand, bullBand, color=color.new(bullFillColor, 80))fill(minBand, bearBand, color=color.new(bearFillColor, 80))plot(tot_rsi, title='Total RSI', linewidth=2, color=rcColor)plot(rsi, title='RSI', linewidth=1, color=color.new(color.purple, 0))plot(ta.rsi(ikp, len2), title='Inverse Kimchi Premium RSI', linewidth=1, color=color.new(color.blue, 0))// Long Short conditionslongCondition = ta.crossover(tot_rsi, bullLevel)if longCondition    strategy.entry('Long', strategy.long)shortCondition = ta.crossunder(tot_rsi, bearLevel)if shortCondition    strategy.entry('Short', strategy.short)