Tags: SMAEMAMACD

K's reversal indicator I is a special combination between Bollinger bands and the MACD oscillator. It is a contrarian indicator that depends on the following conditions:

• A buy signal is generated whenever the current market price is below the 100-period lower Bollinger band while simultaneously, the MACD value must be above its signal line. At the same time, the previous MACD value must be below its previous signal line. • A sell (short) signal is generated whenever the current market price is above the 100-period upper Bollinger band while simultaneously, the MACD value must be below its signal line. At the same time, the previous MACD value must be above its previous signal line.

The way to use K’s reversal indicator is to combine it with your already long/short bias in a sideways/range market in order to maximize the probability of success.

Limitations of the indicator include the following: • There are no clear exit rules that work well on average across the markets. Even though K’s reversal indicator gives contrarian signals, it does not show when to exit the positions. • As with other indicators, it underperforms on some markets and is not to be used everywhere. • False signals tend to occur during trending markets but there is no proven way to detect a false signal.

**backtest**

/*backtest start: 2022-02-07 00:00:00 end: 2022-05-07 00:00:00 period: 30m basePeriod: 15m exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © Sofien-Kaabar //@version = 5 indicator("K's Reversal Indicator I", overlay = true) fast = input(defval = 12, title = 'Fast') slow = input(defval = 26, title = 'Slow') signal = input(defval = 9, title = 'Signal') length = input(defval = 100, title = 'Bollinger Lookback') multiplier = input(defval = 2, title = 'Multiplier') // MACD macd_line = ta.ema(close, fast) - ta.ema(close, slow) signal_line = ta.ema(macd_line, signal) // Bollinger lower_boll = ta.sma(close, length) - (multiplier * ta.stdev(close, length)) upper_boll = ta.sma(close, length) + (multiplier * ta.stdev(close, length)) mid_line = ta.sma(close, length) // Signal buy_signal = math.min(open[1], close[1]) <= lower_boll[1] and math.max(open[1], close[1]) <= mid_line and macd_line[1] > signal_line[1] and macd_line[2] < signal_line[2] sell_signal = math.max(open[1], close[1]) >= upper_boll[1] and math.min(open[1], close[1]) >= mid_line and macd_line[1] < signal_line[1] and macd_line[2] > signal_line[2] if buy_signal strategy.entry("Enter Long", strategy.long) else if sell_signal strategy.entry("Enter Short", strategy.short)

- Zero Lag MACD Dual Crossover Trading Strategy - High-Frequency Trading Based on Short-Term Trend Capture
- CM MACD Custom Indicator - Multiple Time Frame - V2
- Moving Average Crossover + MACD Slow Line Momentum Strategy
- ZeroLag MACD Long Short Strategy
- MACD BB Breakout Strategy
- MACD and Martingale Combination Strategy for Optimized Long Trading
- Multi-Indicator Quantitative Trading Strategy - Super Indicator 7-in-1 Strategy
- Dual MACD Optimization Strategy Combining Trend Following and Momentum Trading
- Moon Launch Alerts Template [Indicator]
- MACD ReLoaded STRATEGY

- Buy/Sell Strat
- Triple Supertrend with EMA and ADX
- Tom DeMark Sequential Heat Map
- jma + dwma by multigrain
- MAGIC MACD
- Z Score with Signals
- 吕神简易波动率策略Pine语言版本
- 3EMA + Boullinger + PIVOT
- baguette by multigrain
- MilleMachine
- Engulfing Candles
- MA Emperor insiliconot
- Demark Reversal Points
- Swing Highs/Lows & Candle Patterns
- TMA Overlay
- MACD + SMA 200 Strategy
- CM Sling Shot System
- Bollinger + RSI, Double Strategy v1.1
- Bollinger Bands Strategy
- Optimized Trend Tracker