Zeal Terminal Open in Zeal Terminal

Pine Script v4 · Strategy

Super Scalp 007

A Pine Script v4 strategy built on SMA (p, len), ATR (len) and Cross (low, bott2). It has 2 order rules, 1 entry among them, and trades long only with the default settings. Exits use a stop loss and a profit target. Each trade commits 100% of equity and pays no commission. 3 settings; defaults include Fibonacci Ratio 1 1.618, Fibonacci Ratio 2 2.618 and Fibonacci Ratio 3 4.236.

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 Super Scalp 007 repaint?
No
No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 4 of 4 trades.
How did Super Scalp 007 do on BTCUSDT 1D with default settings?
−23.18%
From 26 Jan 2024 to 21 Oct 2026, over 12 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
Can Super Scalp 007 be converted to Pine Script v5?
Yes
The upgrade takes 1 step, from v4; each was run before and after on the same candles with identical results, and the v5 script can be downloaded below.
Does Super Scalp 007 use a stop loss?
Yes
strategy.exit sets a stop on line 41.
Does Super Scalp 007 run in Zeal Terminal?
Yes
It compiles in 8 ms and runs 1,000 bars in 31 ms, in the browser.

BTCUSDT · 1D · default settings

  • Plot
  • 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 (3)
40,00060,00080,000100,000120,000AprJulOct2025AprJulOct2026AprJulOctPlot$154$405Equity from $200
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
−23.18%
−$46.37
Buy and hold
+102.5%
same period
Closed trades
12
6 won · 6 lost
Profitable
50.0%
of closed trades
Profit factor
0.66
gross profit ÷ gross loss
Max drawdown
38.11%
−$80.15

One run with the author's default settings, $200 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.

  • 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 40. The upgraded version below moves each call inside an if block.

Upgrade and export

Written in Pine Script v4. The upgrade to v5 takes 1 step, one per version, each applied to the result of the one before. A last clean-v5 pass then types the settings and moves when = into if blocks, which v6 requires. Every step runs before and after on the same candles in Zeal Terminal's engine; a step whose results differ is shown but not offered as a download. Upgrades preserve behaviour: bugs are fixed in the Review, never silently here.

  • Upgrading to v5 renames sma → ta.sma, atr → ta.atr, cross → ta.cross.
  • 1 strategy call uses the when = argument (line 40). It is deprecated in v5 and removed in v6, where each call moves inside an if block.

v4 → v5

Verified

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

  • Line 3: //@version=4 → //@version=5
  • Line 8: sma → ta.sma
  • Line 9: atr → ta.atr
  • Line 32: cross → ta.cross
  • Line 33: cross → ta.cross
⋯// © MA_Seifi-//@version=4+//@version=5strategy("Super Scalp 007", overlay=false, initial_capital = 200, default_qty_value = 100, default_qty_type = strategy.percent_of_equity)⋯p=close-sma=sma(p,len)+sma=ta.sma(p,len)-avg=atr(len)+avg=ta.atr(len)fibratio1=input(defval=1.618,title="Fibonacci Ratio 1")⋯k = 0.005-longCondition = cross(low, bott2)+longCondition = ta.cross(low, bott2)-shortCondition = cross(high, top2)+shortCondition = ta.cross(high, top2)stop_l = bott3 * (1 - k * 0.5)⋯

Clean v5

VerifiedDownload the v5 script

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

  • Line 10: input() → input.float()
  • Line 11: input() → input.float()
  • Line 12: input() → input.float()
  • Line 40: when = longCondition → if block
⋯avg=ta.atr(len)-fibratio1=input(defval=1.618,title="Fibonacci Ratio 1")+fibratio1=input.float(defval=1.618,title="Fibonacci Ratio 1")-fibratio2=input(defval=2.618,title="Fibonacci Ratio 2")+fibratio2=input.float(defval=2.618,title="Fibonacci Ratio 2")-fibratio3=input(defval=4.236,title="Fibonacci Ratio 3")+fibratio3=input.float(defval=4.236,title="Fibonacci Ratio 3")r1=avg*fibratio1⋯plot(stop_l, color=color.red)-strategy.entry("long", strategy.long, when = longCondition)+if longCondition+    strategy.entry("long", strategy.long)strategy.exit('long', limit = limit_l, stop=stop_l)⋯

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: 12 before, 10 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.

⋯// © MA_Seifi-//@version=5+//@version=6strategy("Super Scalp 007", overlay=false, initial_capital = 200, default_qty_value = 100, default_qty_type = strategy.percent_of_equity)⋯

Settings

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

SettingDefaultType and rangeFeeds
Fibonacci Ratio 11.618floatr1
Fibonacci Ratio 22.618floatr2
Fibonacci Ratio 34.236floatr3

What it calculates

  • SMA (sma, ta.sma in v5)p, lensma · line 8
  • ATR (atr, ta.atr in v5)lenavg · line 9
  • Cross (cross, ta.cross in v5)low, bott2longCondition · line 32
  • Cross (cross, ta.cross in v5)high, top2shortCondition · line 33

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.

high · low · closehigh · low · closeprice datalowlowprice datahighhighprice dataclosecloseprice datafibratio1Fibonacci Ratio 1setting · 1.618fibratio2Fibonacci Ratio 2setting · 2.618fibratio3Fibonacci Ratio 3setting · 4.236smaSMA→ smaavgATR→ avglongConditionCross→ longConditionshortConditionCross→ shortConditionppvaluer1r1valuer2r2valuer3r3valuetop3, bott3top3 · bott32 valuestop2, bott2top2 · bott22 valuestop1, bott1top1 · bott12 valuesstop_lstop_lvaluestop_sstop_svaluelimit_llimit_lvaluelimit_slimit_svalueentry:longOpen longstrategy.entryexit:longexit longstrategy.exitplot:38plotplotplot:39plotplot

Order rules

OrderFires whenBy defaultLine
Open long longlongConditionOn40
Exit long stop and limitevery barOn41

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.

4/4trades 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−23.2%+102.5%1250%0.6638.1%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h+1.2%+5.5%1471%1.0516.0%8 May 2026 – 21 Oct 2026
ETHUSDT 1D−64.6%+9.8%1331%0.2672.6%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h−10.0%+8.4%1553%0.7527.4%8 May 2026 – 21 Oct 2026
SOLUSDT 1D−16.5%+16.7%1450%0.8857.8%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h+10.0%+21.5%1362%1.2617.8%8 May 2026 – 21 Oct 2026
BNBUSDT 1D+91.2%+148.3%1267%3.5224.1%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h−1.4%+17.1%1553%0.9514.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 market0—$0.00
Sideways market838%−$93.65
Falling market475%$47.28

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

How bad could the drawdown be?

49.0%

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

0%56%
All 12 trades
SideEntryExitBarsP&L
long25 Jun 2024 60,293.305 Jul 2024 53,788.8010−$21.58
long8 Jul 2024 55,857.8017 Jul 2024 65,842.409$31.89
long5 Aug 2024 58,161.005 Aug 2024 54,227.900−$14.22
long10 Aug 2024 60,838.0023 Sep 2024 64,591.2044$12.10
long26 Feb 2025 88,680.4028 Feb 2025 78,790.302−$23.22
long2 Mar 2025 86,064.5022 Apr 2025 91,389.2051$11.44
long11 Oct 2025 112,774.0021 Nov 2025 81,996.5041−$53.61
long25 Nov 2025 88,300.005 Jan 2026 94,756.5041$10.44
long30 Jan 2026 84,650.2031 Jan 2026 79,197.001−$9.87
long14 Feb 2026 68,854.0014 Apr 2026 75,968.1059$14.81
long29 May 2026 73,617.502 Jun 2026 67,676.704−$12.77
long13 Jun 2026 63,580.0019 Aug 2026 67,165.3067$8.20

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
Super Scalp 007 this page—v4 strategy−23.2%1238.1%
I11L - Better Buy Low Volatility or High Volatility- by I11Latr smav5 strategy+19.2%8337.4%
Vortex Cross w-MA Confirmation by DraftVentureatr smav5 strategy+2.4%524.7%
Configurable Multi MA Crossover Voting System by levieuxsma atrv5 strategy+28.5%539.4%
Swing Trend Strategy by Inkedlausma atrv5 strategy+11.2%516.2%
SSL Backtester With ATR SL TP and Money Management by JBTrippinsma atrv4 strategy+8.5%553.9%

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 8 msYes 1,000 bars in 31 msNot measured
PineTSNo v5 and v6 only—Not 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. PineTS runs Pine Script v5 and v6 only.

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/// © MA_Seifi//@version=4strategy("Super Scalp 007", overlay=false, initial_capital = 200, default_qty_value = 100, default_qty_type = strategy.percent_of_equity)// Indicatorlen=20p=closesma=sma(p,len)avg=atr(len)fibratio1=input(defval=1.618,title="Fibonacci Ratio 1")fibratio2=input(defval=2.618,title="Fibonacci Ratio 2")fibratio3=input(defval=4.236,title="Fibonacci Ratio 3")r1=avg*fibratio1r2=avg*fibratio2r3=avg*fibratio3top3=sma+r3top2=sma+r2top1=sma+r1bott1=sma-r1bott2=sma-r2bott3=sma-r3// t3=plot(top3,transp=0,title="Upper 3",color=teal)// t2=plot(top2,transp=20,title="Upper 2",color=teal)// t1=plot(top1,transp=40,title="Upper 1",color=teal)// b1=plot(bott1,transp=40,title="Lower 1",color=teal)// b2=plot(bott2,transp=20,title="Lower 2",color=teal)// b3=plot(bott3,transp=0,title="Lower 3",color=teal)// plot(sma,style=cross,title="SMA",color=teal)// fill(t3,b3,color=navy,transp=85)// Conditionsk = 0.005longCondition = cross(low, bott2)shortCondition = cross(high, top2)stop_l = bott3 * (1 - k * 0.5)stop_s = top3 * (1 + k)limit_l = top2 * (1 - k)limit_s = bott2plot(limit_l, color=color.green)plot(stop_l, color=color.red)strategy.entry("long", strategy.long, when = longCondition)strategy.exit('long', limit = limit_l, stop=stop_l)// strategy.entry("short", strategy.short, when = shortCondition)// strategy.exit('short', limit = limit_s, stop=stop_s)// shortCondition = ta.crossunder(ta.sma(close, 14), ta.sma(close, 28))// if (shortCondition)//     strategy.entry("My Short Entry Id", strategy.short)