Pine Script v5 · Strategy
Hulk Strategy x35 Leverage 5m chart w-Alerts
A Pine Script v5 strategy built on RSI (close, 20), Change (high) and RMA (ta.tr, len). It has 4 order rules, 2 entries among them, and trades long and short with the default settings. Exits use a stop loss and a profit target. Each trade commits 100% of equity and pays no commission. 19 settings; defaults include RSI Length 20, RSI Top Input 2 and RSI Bot Input -2.
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 Hulk Strategy x35 Leverage 5m chart w-Alerts repaint?
- No
- No repainting patterns were found in the source. The live replay was not measured: it had no trades to compare.
- How did Hulk Strategy x35 Leverage 5m chart w-Alerts 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.
- What alerts does Hulk Strategy x35 Leverage 5m chart w-Alerts have?
- 2
- "Go Long with TP at" + str.tostring(Long_takeProfit) + "and SL at" + str.tostring(Long_stopLoss); "Go Short with TP at" + str.tostring(Short_takeProfit) + "and SL at" + str.tostring(Short_stopLoss).
- Does Hulk Strategy x35 Leverage 5m chart w-Alerts 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 Hulk Strategy x35 Leverage 5m chart w-Alerts use a stop loss?
- Yes
- strategy.exit sets a stop on line 156, 165.
BTCUSDT · 1D · default settings
- Winning trade
- Losing trade
- Equity
- Buy and hold
Needs BINANCE:BTCUSDT 1 data, not available: a lower timeframe than the chart; the engine does not evaluate intrabar data 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, $100 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
8 settings have no label
In the settings dialog rsiLength (line 7), RsiTopInput (line 8), RsiBotInput (line 9), FastMacdLength (line 37), SlowMacdLength (line 38), SignalLength (line 39), res (line 41), MaxTrades (line 128) show 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.
Settings
Every input the script declares, with its default and what it feeds. Bounds are the ones the script enforces.
| Setting | Default | Type and range | Feeds |
|---|---|---|---|
| RSI Length (no label in the script) | 20 | int | rsi |
| RSI Top Input (no label in the script) | 2 | int | LongConditionPt3 ShortConditionPt3 |
| RSI Bot Input (no label in the script) | -2 | int | LongConditionPt3 ShortConditionPt3 |
| ADX Smoothing | 14 | int | adx sig |
| DI Length | 14 | int | plus minus sig |
| ADX filter amount | 33 | int | LongConditionPt1 ShortConditionPt1 |
| Ema Fast Length | 50 | int | emaFast |
| Ema Slow Length | 200 | int | emaSlow |
| Strong Up Trend Col (no label in the script) | color.rgb(74, 255, 163) | color | UptrendCol_DowntrendCol |
| Strong Down Trend Col (no label in the script) | color.rgb(255, 71, 84) | color | UptrendCol_DowntrendCol |
| Max Trades (no label in the script) | 6 | int | IsMaxTrades_BelowCap |
| MACD | |||
| Fast Macd Length (no label in the script) | 12 | int | FastMacd SlowMacd Macdhist |
| Slow Macd Length (no label in the script) | 26 | int | FastMacd SlowMacd Macdhist |
| Signal Length (no label in the script) | 11 | int | FastMacd SlowMacd Macdhist |
| Tick Amount for entry | 5.45 | float | MACDisAboveBand MACDisBelowBand |
| Res (no label in the script) | 1 | timeframe | MACD |
| Filters | |||
| Limit Trades Per Cross | true | bool | line 130 |
| TP/SL | |||
| Take Profit % | 0.0135 | float | Long_takeProfit Short_takeProfit |
| Stop Loss % | 0.011 | float | Long_stopLoss Short_stopLoss |
What it calculates
- RSIclose, RSI Length (20)
rsi · line 12 - Changehigh
up · line 19 - Changelow
down · line 20 - RMAta.tr, len
truerange · line 23 - RMAmath.abs(plus - minus) / (sum == 0 ? 1 : sum), ADX Smoothing (14)
adx · line 30 - MACDclose, Fast Macd Length (12), Slow Macd Length (26), Signal Length (11)
FastMacd · line 46 - MACDclose, Fast Macd Length (12), Slow Macd Length (26), Signal Length (11)
SlowMacd · line 46 - MACDclose, Fast Macd Length (12), Slow Macd Length (26), Signal Length (11)
Macdhist · line 46 - EMAclose, Ema Fast Length (50)
emaFast · line 88 - EMAclose, Ema Slow Length (200)
emaSlow · line 89
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.
The script has 68 named inputs, calculations, conditions and outputs, too many to draw legibly here; the tables above list them.
Order rules
| Order | Fires when | By default | Line |
|---|---|---|---|
| Open long long | (longCondition) | On | 155 |
| Exit exit stop and limit | (longCondition) | On | 156 |
| Open short short | (shortCondition ) | On | 164 |
| Exit exit stop and limit | (shortCondition ) | On | 165 |
Each order is guarded by the setting shown. “Off” orders never fire unless that setting is switched on.
Alerts
| Alert | Call | Message | Line |
|---|---|---|---|
| (no title) | alert | "Go Long with TP at" + str.tostring(Long_takeProfit) + "and SL at" + str.tostring(Long_stopLoss) | 160 |
| (no title) | alert | "Go Short with TP at" + str.tostring(Short_takeProfit) + "and SL at" + str.tostring(Short_stopLoss) | 168 |
Does it repaint?
No
No repainting patterns in the source.
- ClearHigher-timeframe data1 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 BINANCE:BTCUSDT 1, and that data is not available here (a lower timeframe than the chart; the engine does not evaluate intrabar data). 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.
| Script | Shares | Type | Net | Trades | Max drawdown |
|---|---|---|---|---|---|
| Hulk Strategy x35 Leverage 5m chart w-Alerts this page | — | v5 strategy | 0.0% | 0 | 0.0% |
| RSI of MACD Strategy [Long only] by mohanee | macd rsi ema | v4 strategy | No trades on this market | ||
| Take Profit On Trend v2 (by BHD_Trade_Bot) by BHD_Trade_Bot | ema rsi rma | v5 strategy | +9.4% | 6 | 24.0% |
| MTF Diagonally Layered RSI - 1 minute Bitcoin Bot [wbburgin] by wbburgin | rsi rma ema | v5 strategy | No trades on this market | ||
| Kahlman HullMA - WT Cross Strategy by pigsq | ema rsi rma | v5 strategy | +1.0% | 54 | 33.3% |
| Short Swing Bearish MACD Cross (By Coinrule) by Coinrule | ema macd | v5 strategy | −6.9% | 8 | 6.9% |
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 settings use the untyped input() (line 16, 17). 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 verifiedNeither version placed a trade on any of the 8 markets, so there was nothing to compare.
- Line 16: input() → input.int()
- Line 17: input() → input.int()
⋯//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------adxlen = input(14, title="ADX Smoothing")+adxlen = input.int(14, title="ADX Smoothing")-dilen = input(14, title="DI Length")+dilen = input.int(14, title="DI Length")dirmov(len) =>⋯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.
⋯// © npietronuto1-//@version=5+//@version=6strategy("Hulk Scalper x35 Leverage", shorttitle = "Smash Pullback Strat", overlay=true, initial_capital=100, default_qty_type=strategy.percent_of_equity, default_qty_value=100)⋯Where it runs
| Engine | Compiles | Runs | Matches TradingView |
|---|---|---|---|
| Zeal Terminal · OpenPineScript v2 | Yes 40 ms | Yes 1,000 bars in 79 ms | Not measured |
| PineTS | Not tested | Not tested | 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.
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/// © npietronuto1//@version=5strategy("Hulk Scalper x35 Leverage", shorttitle = "Smash Pullback Strat", overlay=true, initial_capital=100, default_qty_type=strategy.percent_of_equity, default_qty_value=100)//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//RSIrsiLength = input.int(20)RsiTopInput = input.int(2)RsiBotInput = input.int(-2)// toprsiLine = hline(RsiTopInput, title = "Rsi Top Line", linestyle = hline.style_solid)// botrsiLine = hline(RsiBotInput, title = "Rsi Bottom Line", linestyle = hline.style_solid)rsi = ta.rsi(close, rsiLength)rsiWeighted = rsi - 50 //Zeros Rsi to look nicer//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//------------------------------------------------------------------------------------------------------------------------------------------------------------------------adxlen = input(14, title="ADX Smoothing")dilen = input(14, title="DI Length")dirmov(len) => up = ta.change(high) down = -ta.change(low) plusDM = na(up) ? na : (up > down and up > 0 ? up : 0) minusDM = na(down) ? na : (down > up and down > 0 ? down : 0) truerange = ta.rma(ta.tr, len) plus = fixnan(100 * ta.rma(plusDM, len) / truerange) minus = fixnan(100 * ta.rma(minusDM, len) / truerange) [plus, minus]adx(dilen, adxlen) => [plus, minus] = dirmov(dilen) sum = plus + minus adx = 100 * ta.rma(math.abs(plus - minus) / (sum == 0 ? 1 : sum), adxlen)sig = adx(dilen, adxlen)ADXfilterlevel = input.int(33, title = "ADX filter amount")// plot(sig, color=color.red, title="ADX")//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//MACDFastMacdLength = input.int(12, group = "MACD") SlowMacdLength = input.int(26, group = "MACD")SignalLength = input.int(11, group = "MACD")MacdTickAmountNeeded = input.float(5.45, title = "Tick Amount for entry", group = "MACD")res = input.timeframe("1", group = "MACD")// bullishgrow_col = input.color(defval = #3179f5)// bullishweaken_col = input.color(defval = #00e1ff)// bearishweaken_col = input.color(defval = #ff01f1)// bearishgrow_col = input.color(defval = #9d00e5)[FastMacd, SlowMacd, Macdhist] = ta.macd(close, FastMacdLength, SlowMacdLength, SignalLength)//Pull MACD from Lower timeframeMACD = request.security(syminfo.tickerid, res, Macdhist, gaps = barmerge.gaps_on)//Grow and Fall Color// getgrow_fall_col(Value) =>// if Value >= 0 // if Value >= Value[1]// color.new(bullishgrow_col, transp = 10) // else if Value <= Value[1]// color.new(bullishweaken_col, transp = 10) // else if Value <= 0 // if Value <= Value[1]// color.new(bearishgrow_col, transp = 10) // else if Value >= Value[1]// color.new(bearishweaken_col, transp = 10) //CONDITIONS that check if MACD is overbought or oversoldMACDisAboveBand = MACD > MacdTickAmountNeededMACDisBelowBand = MACD < MacdTickAmountNeeded*-1 //Plot// plot(MACD, style = plot.style_columns, color = getgrow_fall_col(MACD))//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//EMAs//InputsEmaFastLength = input.int(50, title = "Ema Fast Length")EmaSlowLength = input.int(200, title = "Ema Slow Length")StrongUpTrendCol = input.color(color.rgb(74, 255, 163))//WeakUptrend = input.color(color.rgb(74, 255, 163, 50))StrongDownTrendCol = input.color(color.rgb(255, 71, 84))//WeakDownTrend = input.color(color.rgb(255, 71, 84, 50))//CalculationsemaFast= ta.ema(close, EmaFastLength)emaSlow= ta.ema(close, EmaSlowLength)emaDist=emaFast-emaSlowEmaLengthFraction = emaDist/4emafrac5 = emaSlow + EmaLengthFractionemafrac4 = emaSlow + EmaLengthFraction*2emafrac3 = emaSlow + EmaLengthFraction*3emafrac2 = emaSlow + EmaLengthFraction*4UptrendCol_DowntrendCol= emaFast>=emaSlow ? StrongUpTrendCol:StrongDownTrendCol//Plotema1p = plot(emaFast, color = color.new(#000000, transp = 100))ema2p = plot(emafrac2, color = color.new(#000000, transp = 100))ema3p = plot(emafrac3, color = color.new(#000000, transp = 100))ema4p = plot(emafrac4, color = color.new(#000000, transp = 100))ema5p = plot(emafrac5, color = color.new(#000000, transp = 100))ema6p = plot(emaSlow, color = color.new(#000000, transp = 100))fill(ema2p,ema3p, color = color.new(UptrendCol_DowntrendCol, 70))fill(ema3p,ema4p, color = color.new(UptrendCol_DowntrendCol, 60))fill(ema4p,ema5p, color = color.new(UptrendCol_DowntrendCol, 50))fill(ema5p,ema6p, color = color.new(UptrendCol_DowntrendCol, 40))//ConditonsFastEma_above_SlowEma = emaFast > emaSlow FastEma_below_SlowEma = emaFast < emaSlowemaCrossEvent = ta.crossover(emaFast, emaSlow) or ta.crossover(emaSlow, emaFast)//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//Trade Cap per EMA X//InputsMaxTrades_PerCross_Checkbox = input.bool(true, "Limit Trades Per Cross", group = "Filters")TrdCount = 0//Variable that keeps current trade countif(TrdCount[1] > 0)//Passes variable on to current candle TrdCount := TrdCount[1] //Reset trade count if EMAs X emaXevent = ta.crossover(emaFast, emaSlow) or ta.crossover(emaSlow, emaFast) // Check for EMA crossif(emaXevent) TrdCount := 0 //ConditionsMaxTrades = input.int(6)IsMaxTrades_BelowCap = TrdCount[1] < MaxTrades //Condition that applies max trade countif(not MaxTrades_PerCross_Checkbox) IsMaxTrades_BelowCap := true//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//------------------------------------------------------------------------------------------------------------------------------------------------------------------------//STRATEGY LOGIC//ParametersTakeProfitInput = input.float(0.0135, title = "Take Profit %", group = "TP/SL")StopLossInput = input.float(0.011, title = "Stop Loss %", group = "TP/SL")//TP/SL calculationsLong_takeProfit = close * (1 + TakeProfitInput)Long_stopLoss = close * (1 - StopLossInput)Short_takeProfit = close * (1 - TakeProfitInput)Short_stopLoss = close * (1 + StopLossInput)//LONG and ShortLongConditionPt1 = close > emaSlow and MACDisBelowBand and sig > ADXfilterlevelLongConditionPt2 = FastEma_above_SlowEma and IsMaxTrades_BelowCap and strategy.position_size == 0//Checks if Rsi Inbetween LinesLongConditionPt3 = rsiWeighted < RsiTopInput and rsiWeighted > RsiBotInputShortConditionPt1 = close < emaSlow and MACDisAboveBand and sig > ADXfilterlevelShortConditionPt2 = FastEma_below_SlowEma and IsMaxTrades_BelowCap and strategy.position_size == 0//Checks if Rsi Inbetween LinesShortConditionPt3 = rsiWeighted < RsiTopInput and rsiWeighted > RsiBotInput// longCondition = FastEma_above_SlowEma and MACDisBelowBand and IsMaxTrades_BelowCap and rsiWeighted < RsiTopInput and strategy.position_size == 0longCondition = LongConditionPt1 and LongConditionPt2 and LongConditionPt3if(longCondition) strategy.entry("long", strategy.long) strategy.exit("exit", "long", limit = Long_takeProfit, stop = Long_stopLoss) TrdCount := TrdCount + 1//ADD to Max Trades Count alert("Go Long with TP at" + str.tostring(Long_takeProfit) + "and SL at" + str.tostring(Long_stopLoss), alert.freq_once_per_bar_close)shortCondition = ShortConditionPt1 and ShortConditionPt2 and ShortConditionPt3if(shortCondition ) strategy.entry("short", strategy.short) strategy.exit("exit", "short", limit = Short_takeProfit, stop = Short_stopLoss) TrdCount := TrdCount + 1 //ADD to Max Trades Count alert("Go Short with TP at" + str.tostring(Short_takeProfit) + "and SL at" + str.tostring(Short_stopLoss), alert.freq_once_per_bar_close)