Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

volume rsi strategy by pro trader123

A Pine Script v5 strategy built on Highest (volume, 10), RMA or Change (14) and SMA (rsi, 14). It has 6 order rules, 2 entries among them, and trades long and short with the default settings. Exits use a stop loss. Each trade is one contract and pays no commission. 1 setting; defaults include RSI Source Input 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 volume rsi strategy by pro trader123 repaint?
No
No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 5 of 5 trades.
How did volume rsi strategy by pro trader123 do on BTCUSDT 1D with default settings?
−0.00%
From 26 Jan 2024 to 21 Oct 2026, over 20 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
Does volume rsi strategy by pro trader123 run in Pine Script v6?
No
The v6 version runs in Zeal Terminal's engine, but its results differ from the v5 version: Trades differ: 20 before, 16 after on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. It is shown for reference and is not offered as a download.
Does volume rsi strategy by pro trader123 use a stop loss?
Yes
strategy.exit sets a stop on line 63, 68.
Does volume rsi strategy by pro trader123 run in Zeal Terminal?
Yes
It compiles in 30 ms and runs 1,000 bars in 35 ms, in the browser.

BTCUSDT · 1D · default settings

  • Plot
  • Winning trade
  • Losing trade
  • Equity
  • Buy and hold
Prerendered with the defaults. Change anything and run it here. The script runs in your browser.
Settings (1)
0.0050,000100,000AprJulOct2025AprJulOct2026AprJulOct$999,994$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.
Net profit
−0.00%
−$6.00
Buy and hold
+102.5%
same period
Closed trades
20
0 won · 20 lost
Profitable
0.0%
of closed trades
Profit factor
0.00
gross profit ÷ gross loss
Max drawdown
0.00%
−$6.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 commission

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

  • Note

    1 setting has no label

    In the settings dialog rsiSourceInput (line 7) shows an empty name. The labels on this page come from the variable names.

  • Note

    No slippage

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

  • Note

    Uses an argument v6 removed

    when = on line 65, 70. The upgraded version below moves each call inside an if block.

Settings

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

SettingDefaultType and rangeFeeds
RSI Source Input (no label in the script)closesourceup down

What it calculates

  • Highestvolume, 10highestvol · line 5
  • Highestvolume, 5highestvol5 · line 6
  • RMA / Changemath.max(ta.change(rsiSourceInput), 0), 14up · line 8
  • RMA / Change-math.min(ta.change(rsiSourceInput), 0), 14down · line 9
  • SMArsi, 14rsiema · line 11

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.

volumevolumeprice dataclosecloseprice datahighestvolHighest→ highestvolhighestvol5Highest→ highestvol5upRMA / Change→ updownRMA / Change→ downrsiemaSMA→ rsiemarsirsivaluetakeprofit, takeprofitshorttakeprofit · takeprofit…2 conditionsnotintradenotintradeconditionentry:longOpen longstrategy.entryexit:longexit longstrategy.exitclose:longClose longstrategy.closeentry:shortOpen shortstrategy.entryexit:shortexit shortstrategy.exitclose:shortClose shortstrategy.closeplot:71plotplot

Order rules

OrderFires whenBy defaultLine
Open long long(a==2 and c==1)On62
Exit long stop(a==2 and c==1)On63
Close longe==3On65
Open short short(b==2 and d==1)On67
Exit short stop(b==2 and d==1)On68
Close shortf==3On70

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, and the live replay matched history.

5/5trades identical when replayed liveThe last 300 bars, from 26 Dec 2025, were fed to the engine as live ticks, four per bar, and compared with the historical run. Orders are decided once per closed bar, so nothing can change mid-bar.
  • ClearHigher-timeframe dataThe script requests no other symbol or timeframe.
  • 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

The same script with default settings on 8 Binance markets. Each row is a separate backtest over the most recent 1,000 bars.

MarketNetBuy and holdTradesWonProfit factorMax drawdownPeriod
BTCUSDT 1D−0.0%+102.5%200%0.000.0%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h−0.0%+5.5%190%0.000.0%8 May 2026 – 21 Oct 2026
ETHUSDT 1D−0.0%+9.8%210%0.000.0%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h−0.0%+8.4%210%0.000.0%8 May 2026 – 21 Oct 2026
SOLUSDT 1D−0.0%+16.7%220%0.000.0%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h−0.0%+21.5%195%0.110.0%8 May 2026 – 21 Oct 2026
BNBUSDT 1D−0.0%+148.3%280%0.000.0%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h−0.0%+17.1%210%0.000.0%8 May 2026 – 21 Oct 2026

Backtests are simulations on historical data and are not investment advice.

The trades

By market direction

At entry, last 90 barsTradesWonP&L
Rising market70%−$2.10
Sideways market90%−$2.70
Falling market40%−$1.20

Rising and falling mean the market moved more than 15% over the 90 bars before entry.

How bad could the drawdown be?

0.0%

The 95th percentile of the worst drawdown when the same 20 trades are reshuffled 5,000 times. The bar spans the 5th to 95th percentile, 0.0% to 0.0%; the tick is what actually happened, 0.0%. Order luck alone moves it this much.

0%1%
All 20 trades
SideEntryExitBarsP&L
short24 Feb 2024 50,744.2024 Feb 2024 50,744.400−$0.30
short16 Mar 2024 69,499.8016 Mar 2024 69,500.100−$0.30
long26 Jun 2024 61,806.0026 Jun 2024 61,805.700−$0.30
long7 Jul 2024 58,230.107 Jul 2024 58,229.800−$0.30
long7 Aug 2024 56,022.007 Aug 2024 56,021.700−$0.30
short1 Nov 2024 70,292.001 Nov 2024 70,292.300−$0.30
short26 Nov 2024 93,010.0026 Nov 2024 93,010.300−$0.30
long2 Mar 2025 86,064.502 Mar 2025 86,064.200−$0.30
short13 May 2025 102,791.0013 May 2025 102,792.000−$0.30
short24 May 2025 107,318.0024 May 2025 107,319.000−$0.30
short16 Jul 2025 117,758.0016 Jul 2025 117,758.000−$0.30
short19 Jul 2025 117,925.0019 Jul 2025 117,925.000−$0.30
short8 Oct 2025 121,333.008 Oct 2025 121,333.000−$0.30
long19 Nov 2025 92,960.8019 Nov 2025 92,960.500−$0.30
long25 Nov 2025 88,300.0025 Nov 2025 88,299.700−$0.30
short16 Jan 2026 95,604.8016 Jan 2026 95,605.100−$0.30
long7 Feb 2026 70,580.307 Feb 2026 70,580.000−$0.30
long12 Jun 2026 63,626.0012 Jun 2026 63,625.700−$0.30
short31 Aug 2026 77,682.0031 Aug 2026 77,682.300−$0.30
short24 Sep 2026 84,397.6024 Sep 2026 84,397.900−$0.30

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
volume rsi strategy by pro trader123 this page—v5 strategy−0.0%200.0%
LowFinder_PyraMider_V2 by A3Shrma sma highestv5 strategy+1.9%150.8%
Forex Midpoint Stratejisi For Nasdaq by trademasterfsma highestv5 strategy−2.1%156.3%
GMH - ATH 200d by gmhfundhighest smav5 strategyNo trades on this market
Infiten Slope Strategy by spiritualhealer117sma rmav4 strategy+47.2%2635.5%
Previous Day High Low Strategy only for Long by mangeshabhang19rma highestv5 strategyNo trades on this market

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.

  • 2 strategy calls use the when = argument (line 65, 70). It is deprecated in v5 and removed in v6, where each call moves inside an if block.
  • No v6-only features. v6 is not needed to run this script.

Clean v5

VerifiedDownload the v5 script

Same 20 trades and the same P&L on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine.

  • Line 65: when = e==3 → if block
  • Line 70: when = f==3 → if block
⋯if(e==3)-    strategy.close("long",when = e==3)+    if e==3+        strategy.close("long")if(b==2 and d==1)⋯if(f==3)-    strategy.close("short",when = f==3)+    if f==3+        strategy.close("short")plot(e)

Does it run in Pine Script v6?

No

The v6 version runs in Zeal Terminal's engine, but its results differ from the v5 version: Trades differ: 20 before, 16 after on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine. It is shown for reference and is not offered as a download. It differs from the v5 version by 1 edit.

⋯// © VSlip-//@version=5+//@version=6strategy("My script",overlay=true)⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 30 msYes 1,000 bars in 35 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/// © VSlip//@version=5strategy("My script",overlay=true)highestvol= ta.highest(volume,10)highestvol5= ta.highest(volume,5)rsiSourceInput = input.source(close)up = ta.rma(math.max(ta.change(rsiSourceInput), 0), 14)down = ta.rma(-math.min(ta.change(rsiSourceInput), 0), 14)rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))rsiema= ta.sma(rsi,14)takeprofit = (rsiema>rsi and rsi>50) or (rsiema>rsi and rsiema>50)takeprofitshort= (rsiema<rsi and rsi<50) or (rsiema<rsi and rsiema<50)notintrade=strategy.position_size<=0a = 0if(rsi<30)    a := 1if(a[1]==1 and 30<rsi)    a:= 2e=0if(a==2 and rsiema>rsi)    e:=1if(a==2 and rsiema<rsi)    e:=2if(e[1]==1 and rsiema>rsi)    e:=1if(e[1]==1 and rsiema<rsi)    e:=2if(e[1]==2 and rsiema<rsi)    e:=2if(e[1]==2 and rsiema>rsi)    e:=3f=0if(a==2 and rsiema<rsi)    f:=1if(a==2 and rsiema>rsi)    f:=2if(f[1]==1 and rsiema<rsi)    f:=1if(f[1]==1 and rsiema>rsi)    f:=2if(f[1]==2 and rsiema>rsi)    f:=2if(f[1]==2 and rsiema<rsi)    f:=3b = 0if(rsi>70)    b := 1if(b[1]==1 and rsi<70)    b:= 2c=0if(highestvol5==highestvol and rsi<30)    c:=1if(c[1]==1 and rsi[1]<30)    c:=1d=0if(highestvol5==highestvol and rsi>70)    d:=1if(d[1]==1 and rsi[1]>70)    d:=1if(a==2 and c==1)    strategy.entry("long",strategy.long)    strategy.exit("long",loss = 30)if(e==3)    strategy.close("long",when = e==3)if(b==2 and d==1)    strategy.entry("short",strategy.short)    strategy.exit("short", loss = 30)if(f==3)    strategy.close("short",when = f==3)plot(e)