Zeal Terminal Open in Zeal Terminal

Pine Script v5 · Strategy

VOLLY PRICE CONVERGE

A Pine Script v5 strategy built on SMA (close, 10) and HMA (volume, 15). It has 2 order rules, 1 entry among them, and trades long only with the default settings. Exits wait for a signal; there is no stop loss. Each trade commits 1% of equity and pays no commission. It has no settings.

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 VOLLY PRICE CONVERGE repaint?
No
No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 25 of 25 trades.
How did VOLLY PRICE CONVERGE do on BTCUSDT 1D with default settings?
+41.17%
From 26 Jan 2024 to 21 Oct 2026, over 75 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
Does VOLLY PRICE CONVERGE 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: 75 before, 64 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 VOLLY PRICE CONVERGE use a stop loss?
No
Every exit waits for a signal; nothing limits a losing trade before it fires.
Does VOLLY PRICE CONVERGE run in Zeal Terminal?
Yes
It compiles in 10 ms and runs 1,000 bars in 21 ms, in the browser.

BTCUSDT · 1D · default settings

  • SMA
  • HMA
  • HMA
  • SMA
  • SMA
  • 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 (0)
0.0050,000100,000AprJulOct2025AprJulOct2026AprJulOct$1,411,730$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. The script plots nothing itself; the lines and the lower pane are its own calculations, drawn for reference.
Net profit
+41.17%
$411,678.00
Buy and hold
+102.5%
same period
Closed trades
75
38 won · 37 lost
Profitable
50.7%
of closed trades
Profit factor
1.31
gross profit ÷ gross loss
Max drawdown
22.40%
−$348,161.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.

  • Check

    Every trade uses all the equity

    default_qty_value is 100% of equity.

  • 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 25, 27. 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.

The script declares no settings.

What it calculates

  • SMAclose, 10base_sma · line 5
  • HMAvolume, 15vol_sma5 · line 6
  • HMAclose, 15price_sma5 · line 7
  • SMAclose, 50ma50 · line 8
  • SMAclose, 20ma20 · line 9

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 datavolumevolumeprice database_smaSMA→ base_smavol_sma5HMA→ vol_sma5price_sma5HMA→ price_sma5ma50SMA→ ma50ma20SMA→ ma20signal, bank_rollsignal · bank_roll2 valuesqtyqtyvaluecolourColourcolourentry:LongOpen Longstrategy.entryclose:LongClose Longstrategy.close

Order rules

OrderFires whenBy defaultLine
Open Long longsignal == 2 and close > base_smaOn25
Close Longsignal == 1 or signal == 0 or close < base_smaOn27

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.

25/25trades 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+41.2%+102.5%7551%1.3122.4%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h−1.2%+5.5%8331%0.9614.1%8 May 2026 – 21 Oct 2026
ETHUSDT 1D−4.9%+9.8%7642%0.9745.8%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h+7.0%+8.4%7334%1.1610.4%8 May 2026 – 21 Oct 2026
SOLUSDT 1D+38.4%+16.7%7247%1.1741.8%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h+12.0%+21.5%7844%1.2411.5%8 May 2026 – 21 Oct 2026
BNBUSDT 1D+22.7%+148.3%8542%1.1434.9%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h+16.9%+17.1%8141%1.457.3%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 market2552%$159,871.00
Sideways market3557%$528,091.00
Falling market1533%−$276,284.00

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

How bad could the drawdown be?

33.1%

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

0%38%
All 75 trades
SideEntryExitBarsP&L
long13 Feb 2024 49,917.3017 Feb 2024 52,124.104$44,209.50
long27 Feb 2024 54,476.503 Mar 2024 61,987.305$143,968.00
long6 Mar 2024 63,724.009 Mar 2024 68,124.203$82,044.50
long15 Mar 2024 71,388.9016 Mar 2024 69,499.801−$33,612.70
long11 Apr 2024 70,631.1013 Apr 2024 67,116.502−$61,532.90
long16 May 2024 66,206.5019 May 2024 66,915.203$12,578.30
long21 May 2024 71,446.6025 May 2024 68,550.004−$48,150.60
long4 Jun 2024 68,809.909 Jun 2024 69,310.505$8,289.53
long16 Jul 2024 64,724.1021 Jul 2024 67,140.005$42,842.80
long28 Jul 2024 67,896.5029 Jul 2024 68,249.901$6,197.06
long22 Aug 2024 61,156.0026 Aug 2024 64,220.004$59,962.20
long13 Sep 2024 58,132.3015 Sep 2024 59,993.002$40,227.70
long18 Sep 2024 60,314.0022 Sep 2024 63,349.004$65,265.80
long27 Sep 2024 65,174.0029 Sep 2024 65,858.002$14,297.40
long12 Oct 2024 62,540.0013 Oct 2024 63,206.201$14,664.80
long15 Oct 2024 66,084.0020 Oct 2024 68,378.005$48,294.80
long30 Oct 2024 72,736.403 Nov 2024 69,374.704−$66,531.70
long7 Nov 2024 75,572.0010 Nov 2024 76,677.503$20,084.50
long12 Nov 2024 88,648.0016 Nov 2024 91,032.104$37,465.70
long22 Nov 2024 98,317.1025 Nov 2024 97,900.103−$6,068.58
long4 Dec 2024 95,849.709 Dec 2024 101,110.005$78,171.60
long18 Dec 2024 106,134.0019 Dec 2024 100,204.001−$83,954.60
long3 Jan 2025 96,984.805 Jan 2025 98,220.502$18,076.40
long7 Jan 2025 102,236.009 Jan 2025 95,060.602−$100,835.00
long15 Jan 2025 96,560.9023 Jan 2025 103,707.008$98,864.80
long13 Feb 2025 97,870.0014 Feb 2025 96,608.101−$18,499.60
long15 Feb 2025 97,500.5016 Feb 2025 97,569.701$1,005.22
long21 Feb 2025 98,305.0022 Feb 2025 96,182.001−$30,608.90
long3 Mar 2025 94,270.004 Mar 2025 86,221.201−$118,399.00
long20 Mar 2025 86,845.9023 Mar 2025 83,840.603−$43,890.60
long25 Mar 2025 87,498.2029 Mar 2025 84,424.404−$43,013.70
long22 Apr 2025 87,516.2027 Apr 2025 94,628.005$96,004.40
long8 May 2025 97,030.5012 May 2025 104,118.004$93,307.70
long13 May 2025 102,791.0015 May 2025 103,508.002$9,554.68
long20 May 2025 105,574.0025 May 2025 107,762.005$28,608.30
long10 Jun 2025 110,263.0013 Jun 2025 105,672.003−$58,665.20
long25 Jun 2025 106,083.0027 Jun 2025 106,947.002$10,997.70
long4 Jul 2025 109,585.006 Jul 2025 108,198.002−$17,224.40
long10 Jul 2025 111,234.0014 Jul 2025 119,087.004$94,880.40
long15 Jul 2025 119,841.0018 Jul 2025 119,178.003−$7,967.65
long24 Jul 2025 118,756.0026 Jul 2025 117,614.002−$13,756.40
long11 Aug 2025 119,294.0016 Aug 2025 117,342.005−$23,191.50
long3 Sep 2025 111,240.005 Sep 2025 110,731.002−$6,380.09
long6 Sep 2025 110,660.007 Sep 2025 110,188.001−$5,918.72
long10 Sep 2025 111,546.0014 Sep 2025 115,918.004$54,152.40
long18 Sep 2025 116,448.0020 Sep 2025 115,632.002−$10,051.60
long1 Oct 2025 114,049.009 Oct 2025 123,306.008$115,726.00
long24 Oct 2025 110,078.0025 Oct 2025 111,005.001$12,977.30
long4 Dec 2025 93,429.906 Dec 2025 89,330.002−$68,213.30
long11 Dec 2025 92,015.4013 Dec 2025 90,268.402−$28,217.10
long31 Dec 2025 88,485.501 Jan 2026 87,648.201−$13,796.60
long3 Jan 2026 89,995.104 Jan 2026 90,628.001$10,156.30
long6 Jan 2026 93,859.709 Jan 2026 91,100.003−$42,762.80
long14 Jan 2026 95,414.0018 Jan 2026 95,147.804−$3,938.67
long29 Jan 2026 89,300.0030 Jan 2026 84,650.201−$73,298.40
long27 Feb 2026 67,485.2028 Feb 2026 65,872.101−$31,896.10
long3 Mar 2026 68,830.107 Mar 2026 68,114.004−$13,549.90
long12 Mar 2026 70,191.9013 Mar 2026 70,541.301$6,417.58
long14 Mar 2026 70,930.0015 Mar 2026 71,211.901$5,148.96
long26 Mar 2026 71,336.5027 Mar 2026 68,820.301−$45,872.50
long7 Apr 2026 68,853.7012 Apr 2026 73,043.205$76,340.60
long14 Apr 2026 74,418.0017 Apr 2026 75,154.303$13,168.50
long18 Apr 2026 77,072.0019 Apr 2026 75,691.801−$24,071.90
long23 Apr 2026 78,178.2025 Apr 2026 77,437.102−$12,513.70
long5 May 2026 79,861.0010 May 2026 80,678.405$13,383.30
long17 Jun 2026 65,675.0019 Jun 2026 62,958.002−$54,648.40
long3 Jul 2026 61,560.004 Jul 2026 62,583.301$21,048.70
long8 Jul 2026 63,364.0010 Jul 2026 63,230.002−$2,722.24
long15 Jul 2026 65,044.0018 Jul 2026 63,931.703−$21,968.50
long22 Jul 2026 66,556.1025 Jul 2026 64,140.003−$45,837.60
long19 Aug 2026 64,725.4024 Aug 2026 77,734.005$244,558.00
long4 Sep 2026 81,270.407 Sep 2026 80,341.803−$16,696.70
long19 Sep 2026 80,883.9021 Sep 2026 81,178.002$5,253.87
long22 Sep 2026 86,620.0026 Sep 2026 84,100.004−$42,182.60
long3 Oct 2026 84,518.004 Oct 2026 84,753.601$3,923.72

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
VOLLY PRICE CONVERGE this page—v5 strategy+41.2%7522.4%
DMI + HMA - No Risk Management by Tuned_Officialhma smav4 strategy−1.4%228.8%
Extremely high win rate FOREX swing strategy by exlux99sma hmav4 strategyNo trades on this market
Smoothed Heikin Ashi Trend on Chart - TraderHalai BACKTEST by TraderHalaisma hmav5 strategy+1.3%1135.6%

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 25, 27). 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 75 trades and the same P&L on BTCUSDT 1D, 1,000 bars, in Zeal Terminal's engine.

  • Line 25: when = signal == 2 and close > base_sma → if block
  • Line 27: when = signal == 1 or signal == 0 or close < base_sma → if block
⋯qty = bank_roll/close-strategy.entry("Long", strategy.long, qty, when = signal == 2 and close > base_sma)+if signal == 2 and close > base_sma+    strategy.entry("Long", strategy.long, qty)// Generate a full exit bracket (profit 10 points, loss 5 points per contract) from the entry named "Long".-strategy.close("Long", when = signal == 1 or signal == 0 or close < base_sma )+if signal == 1 or signal == 0 or close < base_sma+    strategy.close("Long" )

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: 75 before, 64 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.

⋯// © Celar-//@version=5+//@version=6strategy("VOLLY PRICE CONVERGE", default_qty_type= strategy.percent_of_equity )⋯

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 10 msYes 1,000 bars in 21 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/// © Celar//@version=5strategy("VOLLY PRICE CONVERGE", default_qty_type= strategy.percent_of_equity )base_sma = ta.sma(close, 10)vol_sma5 = ta.hma(volume, 15)price_sma5 = ta.hma(close, 15)ma50 = ta.sma(close, 50)ma20 = ta.sma(close, 20)int vol_indicator = naint price_indicator = naif vol_sma5 > vol_sma5[1]    vol_indicator := 1else    vol_indicator := 0if price_sma5 > price_sma5[1]    price_indicator := 1else    price_indicator := 0        signal = vol_indicator + price_indicatorcolour = signal == 2 ?  #00802b : signal == 1 ? #cc2900 : color.white bank_roll = strategy.equityqty = bank_roll/closestrategy.entry("Long", strategy.long, qty, when = signal == 2 and close > base_sma)// Generate a full exit bracket (profit 10 points, loss 5 points per contract) from the entry named "Long".strategy.close("Long", when = signal == 1 or signal == 0 or close < base_sma )