Professional Documents
Culture Documents
Get started
Bitcoin / TetherUS PERPETUAL FUTURES · 10 · BINANCE O41598.84 H41742.29 L41590.67 C41742.29 +143.45 (+0.34%)
[SirPoggy] Simple and Effective RSI Strategy 41408.30 41825.28 ∅ ∅ ∅ ∅ ∅ ∅
While the strategy has been modified slightly to use the DMI instead of the ADX, the core of the strategy is essentially the
same
Long signals are generated when the RSI is above 70, close is above the 200EMA, and the ADX is above 25 (added is the plus
DMI over 25 and minus DMI below 20)
Stop loss is placed below /above the 21 EMA, however, there is a deviation required to ensure price is not too close to where a
stop loss would be placed.
Short signals are generated when the RSI is below 30, close is below the 200EMA, and the ADX is above 25 (added is the minus
DMI over 25 and plus DMI below 20)
I do not recommend using this strategy but I have provided this code for educational purposes.
Thanks!
Let me know which strategy you'd like coded next in the comments below.
Symbol info Symbol: BINANCE:BTCUSDTPERP Timeframe: 10 minutes Chart type: Candles Currency: USDT Tick Size: 0 01 Pr
https://in.tradingview.com/script/JuOqMfBq-ADX-RSI-Strategy-by-Trade-Rush-created-by-SirPoggy/ 1/8
7/31/23, 1:51 AM ADX / RSI Strategy by Trade Rush (created by SirPoggy) by UnknownUnicorn20967364 — TradingView India
Symbol info Symbol: BINANCE:BTCUSDTPERP, Timeframe: 10 minutes, Chart type: Candles, Currency: USDT, Tick Size: 0.01, Pr…
Overview Performance Summary List of Trades Properties
Strategy inputs Show Status Box?: On, Show Backtest Results?: On, Show Win / Loss labels?: On, Enable Long Entries?: On, Enable …
Strategy properties Initial capital: 500 USD, Order size: 100% of equity, Pyramiding: 1 orders, Commission: 0%, Slippage: 0 ticks
Open-source script
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it
for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations
supplied or endorsed by TradingView. Read more in the Terms of Use.
1 //@version=4
2 //
3 // Strategy Coded by SirPoggy
4
5 strategy("[SirPoggy] Simple and Effective RSI Strategy", overlay=true,currency=currency.USD,process_orders_on_close=true,default_qty_type=st
6 //
7
8 //
9 // User Inputs
10 //
11
12 showbox= input(title="Show Status Box?",group="Main Strategy Settings", type=input.bool, defval=true)
13 backtest= input(title="Show Backtest Results?",group="Main Strategy Settings", type=input.bool, defval=true)
14 showwin = input(title="Show Win / Loss labels?", type=input.bool, defval=true,group="Main Strategy Settings")
15 enableLong= input(title="Enable Long Entries?",group="Main Strategy Settings", type=input.bool, defval=true)
16 enableShort= input(title="Enable Short Entries?",group="Main Strategy Settings", type=input.bool, defval=true)
17
18 //MAIN TREND Strategy
19 useslowema = input(title="Enable Global Trend", type=input.bool, defval=false,group="Main Strategy Settings",group="Main Strategy Settings")
20 emalen = input(200, minval=1, title="Global Trend Length",group="Main Strategy Settings")
21 emaslow = ema(close,emalen)
22 lookback= input(10,group="Main Strategy Settings",title="Universal Lookback Period for Strategies")
23 plot(emaslow,"Global Trend EMA",transp= useslowema ? 0 : 100,color=color.white)
24 //RSI Strategy Options
25 usersi = input(title="Enable RSI Strategy",group="🔘 RSI Strategy Settings 🔘", type=input.bool, defval=false)
26 rsitype = input(title="RSI Strategy Type",group="🔘 RSI Strategy Settings 🔘", defval="Standard", options=["Standard", "Reversal","50/50 Me
27 rsistrat = input(title="RSI Strategy Settings",group="🔘 RSI Strategy Settings 🔘", defval="Standard", options=["Standard", "More Sensitive
28 //
29
30 // ADX Strategy Settings
31 useadx = input(title="Enable ADX Strategy", type=input.bool,group="🔘 ADX Strategy Settings 🔘", defval=false)
32 adxtype = input(title="ADX Strategy Settings",group="🔘 ADX Strategy Settings 🔘", defval="Standard", options=["Less Sensitive","Standard",
33 adxroc = input(title="Use ADX Rate of Change?",group="🔘 ADX Strategy Settings 🔘",type=input.bool, defval=false)
34
35
36 // Pullback Settings
37 usepullback= input(title="Enable EMA Pullback Requirement?",group="Pullback Filter", type=input.bool, defval=false)
38 ema_pullback_len = input(title="EMA Lengths for Pullback Filter",group="Pullback Filter", defval="5/20", options=["5/20","20/50","50/100","2
39 //
40 //
41 //RSI STRATEGY
42 //
43
44 len = rsistrat == "More Sensitive" ? 8 : rsistrat == "Extreme" ? 2 : 14
https://in.tradingview.com/script/JuOqMfBq-ADX-RSI-Strategy-by-Trade-Rush-created-by-SirPoggy/ 2/8