Zeal Terminal Open in Zeal Terminal

Pine Script v4 · Strategy

DUAL RSI

A Pine Script v4 strategy built on RSI (ohlc4, 16). It has 6 order rules, 2 entries among them, and trades long only with the default settings. Exits use a stop loss. Each trade is one contract and pays no commission. 3 settings; defaults include Fast RSILen 16, Slow RSILen 31 and Over Sold 91.

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 DUAL RSI repaint?
No
No repainting patterns were found in the source, and a live tick-by-tick replay matched history on 30 of 30 trades.
How did DUAL RSI do on BTCUSDT 1D with default settings?
+12.92%
From 26 Jan 2024 to 21 Oct 2026, over 113 closed trades, against +102.5% for buy and hold. A backtest, not investment advice.
Can DUAL RSI 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 DUAL RSI use a stop loss?
Yes
strategy.exit sets a stop on line 29, 33.
Does DUAL RSI run in Zeal Terminal?
Yes
It compiles in 12 ms and runs 1,000 bars in 30 ms, in the browser.

BTCUSDT · 1D · default settings

  • StopLossLine
  • 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,000AprJulOct2025AprJulOct2026AprJulOct$113,504$202,527Equity from $100,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. Zeal Terminal's engine currently reads an order side written as true as a short, whatever it says; this page passes the same side as strategy.long or strategy.short (lines 24, 31) so the engine trades the way the script says.
Net profit
+12.92%
$12,920.50
Buy and hold
+102.5%
same period
Closed trades
113
54 won · 35 lost
Profitable
47.8%
of closed trades
Profit factor
1.08
gross profit ÷ gross loss
Max drawdown
47.88%
−$65,850.80

One run with the author's default settings, $100,000 starting capital, commission as the script sets it. A long position was still open at the last bar. 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

    3 settings have no label

    In the settings dialog FastRSILen (line 11), SlowRSILen (line 12), overSold (line 13) 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.

  • Note

    Uses an argument v6 removed

    when = on line 24, 31. 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 rsi → ta.rsi, sma → ta.sma.
  • 2 strategy calls use the when = argument (line 24, 31). It is deprecated in v5 and removed in v6, where each call moves inside an if block.

v4 → v5

Verified

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

  • Line 1: //@version=4 → //@version=5
  • Line 14: rsi → ta.rsi
  • Line 15: rsi → ta.rsi
  • Line 16: sma → ta.sma
  • Line 24: strategy.entry(…, true) → strategy.entry(…, strategy.long)
  • Line 31: strategy.entry(…, true) → strategy.entry(…, strategy.long)
-//  @version=4+//  @version=5//  © HermanBrummer⋯overSold        = input( 91 )-FastRsi         = rsi(ohlc4, FastRSILen)+FastRsi         = ta.rsi(ohlc4, FastRSILen)-SlowRsi         = rsi(ohlc4, SlowRSILen)+SlowRsi         = ta.rsi(ohlc4, SlowRSILen)-aboveMaFilter   = close > sma(close, 200)+aboveMaFilter   = close > ta.sma(close, 200)StopLossLine    = strategy.position_avg_price * .90⋯//     FAST_BUY-strategy.entry("Fast Enter", true, when=FastBuy)+strategy.entry("Fast Enter", strategy.long, when=FastBuy)    ⋯// // ///     SLOW_BUY-strategy.entry("Slow Enter", true, when=SlowBuy)+strategy.entry("Slow Enter", strategy.long, when=SlowBuy)    ⋯

Clean v5

VerifiedDownload the v5 script

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

  • Line 11: input() → input.int()
  • Line 12: input() → input.int()
  • Line 13: input() → input.int()
  • Line 24: when = FastBuy → if block
  • Line 31: when = SlowBuy → if block
⋯///     SLOW RSI    EXITS AT 68 RSI LEVEL-FastRSILen      = input( 16 )+FastRSILen      = input.int( 16 )-SlowRSILen      = input( 31 )+SlowRSILen      = input.int( 31 )-overSold        = input( 91 )+overSold        = input.int( 91 )FastRsi         = ta.rsi(ohlc4, FastRSILen)⋯//     FAST_BUY-strategy.entry("Fast Enter", strategy.long, when=FastBuy)+if FastBuy+    strategy.entry("Fast Enter", strategy.long)    ⋯// // ///     SLOW_BUY-strategy.entry("Slow Enter", strategy.long, when=SlowBuy)+if SlowBuy+    strategy.entry("Slow Enter", strategy.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: 113 before, 51 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.

-//  @version=5+//  @version=6//  © HermanBrummer⋯

Settings

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

SettingDefaultType and rangeFeeds
Fast RSILen (no label in the script)16intFastRsi
Slow RSILen (no label in the script)31intSlowRsi
Over Sold (no label in the script)91intFastBuy SlowBuy

What it calculates

  • RSI (rsi, ta.rsi in v5)ohlc4, Fast RSILen (16)FastRsi · line 14
  • RSI (rsi, ta.rsi in v5)ohlc4, Slow RSILen (31)SlowRsi · line 15

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.

ohlc4ohlc4price dataFastRSILenFast RSILensetting · 16SlowRSILenSlow RSILensetting · 31overSoldOver Soldsetting · 91closecloseprice dataFastRsiRSI→ FastRsiSlowRsiRSI→ SlowRsiStopLossLineStopLossLinevalueFastBuyFastBuyconditionSlowBuySlowBuyconditionaboveMaFilteraboveMaFilterconditionentry:Fast EnterOpen Fast Enterstrategy.entryclose:Fast EnterClose Fast Enterstrategy.closeexit:Stop Lossexit Stop Lossstrategy.exitentry:Slow EnterOpen Slow Enterstrategy.entryclose:Slow EnterClose Slow Enterstrategy.closeplot:18StopLossLineplot

Order rules

OrderFires whenBy defaultLine
Open Fast Enter longFastBuyFastRsi < overSold and aboveMaFilterOn24
Close Fast EnterFastRsi > 70On27
Exit Stop Loss stopevery barOn29
Open Slow Enter longSlowBuySlowRsi < overSold and aboveMaFilterOn31
Exit Stop Loss stopevery barOn33
Close Slow EnterSlowRsi > 68On35

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.

30/30trades 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+12.9%+102.5%11348%1.0847.9%26 Jan 2024 – 21 Oct 2026
BTCUSDT 4h+34.5%+5.5%9642%3.9610.0%8 May 2026 – 21 Oct 2026
ETHUSDT 1D+0.6%+9.8%11939%1.083.3%26 Jan 2024 – 21 Oct 2026
ETHUSDT 4h+1.4%+8.4%7551%2.870.5%8 May 2026 – 21 Oct 2026
SOLUSDT 1D−0.1%+16.7%9839%0.820.2%26 Jan 2024 – 21 Oct 2026
SOLUSDT 4h+0.0%+21.5%12845%1.430.0%8 May 2026 – 21 Oct 2026
BNBUSDT 1D−0.1%+148.3%11141%0.941.0%26 Jan 2024 – 21 Oct 2026
BNBUSDT 4h+0.2%+17.1%7847%1.710.2%8 May 2026 – 21 Oct 2026

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

Settings heatmap

Two settings that feed the entry signal, moved around their defaults. The best in-sample pair (Fast RSILen 10, Slow RSILen 19) made +20.1% before 26 Dec 2025 and +21.7% after it, worse than the defaults' +40.4% after. Tuning on the past did not carry forward. 31% of the 64 combinations made money in-sample and 100% out-of-sample.

Before 26 Dec 2025 · in-sample
Slow RSILen ↓ · Fast RSILen →810111416192227
16−18%−3%−3%−15%−8%−3%−23%−25%
19+13%+20%+18%+8%+10%−2%−21%−23%
22+6%+19%+19%+5%+9%+13%−21%−23%
26−1%+13%+13%−6%−0%+3%−15%−18%
31−41%−35%−34%−30%−27%−42%−39%−42%
37−1%+13%+13%+12%+14%+2%+1%−11%
43−21%−8%−8%−9%−7%−18%−10%−22%
53−27%−28%−27%−38%−30%−32%−25%−28%
From 26 Dec 2025 · out-of-sample
Slow RSILen ↓ · Fast RSILen →810111416192227
16+29%+22%+24%+20%+20%+20%+20%+30%
19+29%+22%+22%+19%+19%+19%+19%+30%
22+29%+22%+22%+19%+19%+19%+19%+30%
26+45%+39%+44%+43%+43%+43%+43%+40%
31+44%+37%+42%+40%+40%+40%+40%+40%
37+36%+31%+31%+30%+30%+30%+30%+30%
43+4%+4%+4%+4%+4%+4%+4%+9%
53+4%+4%+4%+4%+4%+4%+4%+9%

Net P&L of trades opened in each period, as a share of starting capital. marks the defaults and the best in-sample cell. Hover a cell for its trade count. Backtests are simulations on historical data and are not investment advice.

The trades

By market direction

At entry, last 90 barsTradesWonP&L
Rising market7347%$8,965.15
Sideways market4050%$3,955.36
Falling market0—$0.00

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

How bad could the drawdown be?

47.6%

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

0%55%
All 113 trades
SideEntryExitBarsP&L
long24 Aug 2024 64,037.201 Sep 2024 57,633.508−$6,403.73
long24 Aug 2024 64,037.201 Sep 2024 57,633.508−$6,403.73
long25 Sep 2024 64,262.7029 Sep 2024 65,858.004$1,595.30
long25 Sep 2024 64,262.7011 Nov 2024 80,370.0047$16,107.30
long29 Sep 2024 65,858.0011 Nov 2024 80,370.0043$14,512.00
long12 Nov 2024 88,648.0013 Nov 2024 87,952.001−$696.00
long12 Nov 2024 88,648.0013 Nov 2024 87,952.001−$696.00
long13 Nov 2024 87,952.0013 Nov 2024 87,952.000$0.00
long14 Nov 2024 90,375.2015 Nov 2024 87,325.601−$3,049.62
long14 Nov 2024 90,375.2015 Nov 2024 87,325.601−$3,049.62
long15 Nov 2024 87,325.6015 Nov 2024 87,325.600$0.00
long16 Nov 2024 91,032.1017 Nov 2024 90,588.001−$444.10
long16 Nov 2024 91,032.1017 Nov 2024 90,588.001−$444.10
long17 Nov 2024 90,588.0017 Nov 2024 90,588.000$0.00
long18 Nov 2024 89,856.0019 Nov 2024 90,464.101$608.09
long18 Nov 2024 89,856.0019 Nov 2024 90,464.101$608.09
long19 Nov 2024 90,464.1019 Nov 2024 90,464.100$0.00
long20 Nov 2024 92,310.8021 Nov 2024 94,286.601$1,975.76
long20 Nov 2024 92,310.8021 Nov 2024 94,286.601$1,975.76
long21 Nov 2024 94,286.6021 Nov 2024 94,286.600$0.00
long22 Nov 2024 98,317.1023 Nov 2024 98,892.001$574.88
long22 Nov 2024 98,317.1023 Nov 2024 98,892.001$574.88
long23 Nov 2024 98,892.0023 Nov 2024 98,892.000$0.00
long24 Nov 2024 97,672.4025 Nov 2024 97,900.101$227.65
long24 Nov 2024 97,672.4025 Nov 2024 97,900.101$227.65
long25 Nov 2024 97,900.1025 Nov 2024 97,900.100$0.00
long26 Nov 2024 93,010.0027 Nov 2024 91,965.201−$1,044.85
long26 Nov 2024 93,010.0029 Nov 2024 95,644.003$2,633.98
long28 Nov 2024 95,863.1029 Nov 2024 95,644.001−$219.12
long29 Nov 2024 95,644.0030 Nov 2024 97,460.001$1,816.01
long30 Nov 2024 97,460.001 Dec 2024 96,408.001−$1,052.01
long1 Dec 2024 96,408.001 Dec 2024 96,408.000$0.00
long1 Dec 2024 96,408.002 Dec 2024 97,185.201$777.18
long2 Dec 2024 97,185.203 Dec 2024 95,840.601−$1,344.56
long3 Dec 2024 95,840.603 Dec 2024 95,840.600$0.00
long3 Dec 2024 95,840.604 Dec 2024 95,849.701$9.08
long4 Dec 2024 95,849.705 Dec 2024 98,587.301$2,737.63
long5 Dec 2024 98,587.305 Dec 2024 98,587.300$0.00
long5 Dec 2024 98,587.306 Dec 2024 96,945.601−$1,641.69
long6 Dec 2024 96,945.607 Dec 2024 99,740.801$2,795.21
long7 Dec 2024 99,740.807 Dec 2024 99,740.800$0.00
long7 Dec 2024 99,740.808 Dec 2024 99,832.001$91.15
long8 Dec 2024 99,832.009 Dec 2024 101,110.001$1,277.61
long9 Dec 2024 101,110.009 Dec 2024 101,110.000$0.00
long9 Dec 2024 101,110.0010 Dec 2024 97,276.501−$3,833.12
long10 Dec 2024 97,276.5016 Dec 2024 104,464.006$7,187.51
long11 Dec 2024 96,593.0016 Dec 2024 104,464.005$7,870.99
long16 Dec 2024 104,464.0017 Dec 2024 106,059.001$1,594.66
long17 Dec 2024 106,059.0018 Dec 2024 106,134.001$75.09
long18 Dec 2024 106,134.0018 Dec 2024 106,134.000$0.00
long18 Dec 2024 106,134.0019 Dec 2024 100,204.001−$5,929.73
long19 Dec 2024 100,204.0025 Feb 2025 88,949.6068−$11,254.40
long20 Dec 2024 97,461.9025 Feb 2025 88,949.6067−$8,512.22
long26 Feb 2025 88,680.4028 Feb 2025 79,812.402−$8,868.04
long26 Feb 2025 88,680.4028 Feb 2025 79,812.402−$8,868.04
long1 Mar 2025 84,349.907 Apr 2025 75,914.9037−$8,435.00
long1 Mar 2025 84,349.907 Apr 2025 75,914.9037−$8,435.00
long23 Apr 2025 93,443.0024 Apr 2025 93,691.101$248.08
long23 Apr 2025 93,443.0010 May 2025 102,972.0017$9,529.00
long24 Apr 2025 93,691.1010 May 2025 102,972.0016$9,280.92
long11 May 2025 104,810.0012 May 2025 104,118.001−$691.53
long11 May 2025 104,810.0012 May 2025 104,118.001−$691.53
long12 May 2025 104,118.0012 May 2025 104,118.000$0.00
long13 May 2025 102,791.0014 May 2025 104,104.001$1,312.40
long13 May 2025 102,791.0020 May 2025 105,574.007$2,782.41
long14 May 2025 104,104.0020 May 2025 105,574.006$1,470.01
long21 May 2025 106,850.0022 May 2025 109,644.001$2,793.99
long21 May 2025 106,850.0022 May 2025 109,644.001$2,793.99
long22 May 2025 109,644.0022 May 2025 109,644.000$0.00
long23 May 2025 111,696.0024 May 2025 107,318.001−$4,377.92
long23 May 2025 111,696.0024 May 2025 107,318.001−$4,377.92
long24 May 2025 107,318.0024 May 2025 107,318.000$0.00
long25 May 2025 107,762.0026 May 2025 109,004.001$1,242.30
long25 May 2025 107,762.0027 May 2025 109,435.002$1,672.88
long26 May 2025 109,004.0027 May 2025 109,435.001$430.58
long28 May 2025 108,938.0012 Jul 2025 117,528.0045$8,589.49
long28 May 2025 108,938.0014 Jul 2025 119,087.0047$10,148.50
long12 Jul 2025 117,528.0014 Jul 2025 119,087.002$1,558.99
long15 Jul 2025 119,841.0016 Jul 2025 117,758.001−$2,083.09
long15 Jul 2025 119,841.0010 Oct 2025 106,920.0087−$12,921.50
long16 Jul 2025 117,758.0010 Oct 2025 106,920.0086−$10,838.40
long11 Oct 2025 112,774.004 Nov 2025 101,497.0024−$11,277.50
long11 Oct 2025 112,774.004 Nov 2025 101,497.0024−$11,277.50
long20 Aug 2026 69,334.8021 Aug 2026 73,027.001$3,692.24
long20 Aug 2026 69,334.8022 Aug 2026 78,338.002$9,003.25
long21 Aug 2026 73,027.0022 Aug 2026 78,338.001$5,311.01
long23 Aug 2026 77,074.9024 Aug 2026 77,734.001$659.06
long23 Aug 2026 77,074.9024 Aug 2026 77,734.001$659.06
long24 Aug 2026 77,734.0024 Aug 2026 77,734.000$0.00
long25 Aug 2026 78,992.8026 Aug 2026 78,539.101−$453.63
long25 Aug 2026 78,992.8026 Aug 2026 78,539.101−$453.63
long26 Aug 2026 78,539.1026 Aug 2026 78,539.100$0.00
long27 Aug 2026 79,023.8028 Aug 2026 80,249.601$1,225.84
long27 Aug 2026 79,023.8028 Aug 2026 80,249.601$1,225.84
long28 Aug 2026 80,249.6028 Aug 2026 80,249.600$0.00
long29 Aug 2026 77,845.9030 Aug 2026 78,230.001$384.12
long29 Aug 2026 77,845.9030 Aug 2026 78,230.001$384.12
long30 Aug 2026 78,230.0030 Aug 2026 78,230.000$0.00
long31 Aug 2026 77,682.001 Sep 2026 78,581.301$899.30
long31 Aug 2026 77,682.001 Sep 2026 78,581.301$899.30
long1 Sep 2026 78,581.301 Sep 2026 78,581.300$0.00
long2 Sep 2026 77,439.004 Sep 2026 81,270.402$3,831.36
long2 Sep 2026 77,439.004 Sep 2026 81,270.402$3,831.36
long4 Sep 2026 81,270.404 Sep 2026 81,270.400$0.00
long5 Sep 2026 79,660.806 Sep 2026 79,831.801$170.98
long5 Sep 2026 79,660.806 Sep 2026 79,831.801$170.98
long6 Sep 2026 79,831.806 Sep 2026 79,831.800$0.00
long7 Sep 2026 80,341.808 Sep 2026 79,112.001−$1,229.83
long7 Sep 2026 80,341.8022 Sep 2026 86,620.0015$6,278.18
long8 Sep 2026 79,112.0022 Sep 2026 86,620.0014$7,508.01
long23 Sep 2026 86,208.6024 Sep 2026 84,397.601−$1,810.97
long23 Sep 2026 86,208.6024 Sep 2026 84,397.601−$1,810.97
long24 Sep 2026 84,397.6024 Sep 2026 84,397.600$0.00

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
DUAL RSI this page—v4 strategy+12.9%11347.9%
Triple RSI strategy by Trade_by_DBrsiv5 strategy+3.2%23.3%
Hobbiecode - RSI + Close previous day by hobbiecodersiv5 strategy+1.2%634.2%
dirt cheap yet elegant RSI Strategy by SparkyFlaryrsiv4 strategy−11.4%820.5%
RSI Classic Strategy (by Coinrule) by Coinrulersiv4 strategy+7.5%67.2%
RSITrendStrategy by email_analystsrsiv4 strategy+69.2%2238.6%

Where it runs

EngineCompilesRunsMatches TradingView
Zeal Terminal · OpenPineScript v2Yes 12 msWith a workaround 1,000 bars in 30 msNot measured
PineTSNo v5 and v6 only—Not measured

Zeal Terminal's engine currently reads an order side written as true as a short, whatever it says; this page passes the same side as strategy.long or strategy.short (lines 24, 31) so the engine trades the way the script says.

“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.

//  @version=4//  © HermanBrummer//  This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/strategy("DUAL RSI", "RSI", 1, pyramiding=2)///     USES TWO RSI'S BOTH OF THEM CAN TRADE IN THE SAME DIRECTION AT THE SAME TIME -- ONE SLOW RSI, AND ONE FAST RSI///     BOTH RSI'S HAVE DIFFERENT LENGHTS ONE IS FAST AND HAS A SETTTING OF 16 ONE IS SLOW AND HAS A SETTING OF 31///     BOTH RSI'S HAVE DIFERENT EXIT PARAMETERS///     PYRAMIDING ALLOWS THE SYSTEM TO BUY ONE DO ONE SLOW RSI AND ONE FAST RSI BUY ON THE SAME DAY///     FASTRSI     EXITS AT 70 RSI LEVEL///     SLOW RSI    EXITS AT 68 RSI LEVELFastRSILen      = input( 16 )SlowRSILen      = input( 31 )overSold        = input( 91 )FastRsi         = rsi(ohlc4, FastRSILen)SlowRsi         = rsi(ohlc4, SlowRSILen)aboveMaFilter   = close > sma(close, 200)StopLossLine    = strategy.position_avg_price * .90plot(StopLossLine, "StopLossLine", #ff0000)// plot(FastRsi, "FastRsi", color.yellow, 2)// plot(SlowRsi, "SlowRsi", color.purple, 2)FastBuy         = FastRsi < overSold and aboveMaFilter //and strategy.position_size != 1SlowBuy         = SlowRsi < overSold and aboveMaFilter //and strategy.position_size != 1//     FAST_BUYstrategy.entry("Fast Enter", true, when=FastBuy)    if  FastRsi > 70    /// SELLS IF RSI == 75    strategy.close("Fast Enter", comment="Fast Exit")    strategy.exit("Stop Loss", "Fast Enter", stop=StopLossLine)       // // ///     SLOW_BUYstrategy.entry("Slow Enter", true, when=SlowBuy)    strategy.exit("Stop Loss", "Slow Enter", stop=StopLossLine)       if  SlowRsi > 68    /// SELLS IF RSI == 68    strategy.close("Slow Enter", comment="Slow Exit")