EMA 9,20 with Support and Resistance Breakout — Strategy by ankurb171991

By ankurb171991

Performance Metrics

Description

This strategy is based on two core concepts — EMA trend direction and Support/Resistance breakout confirmation.EMA LogicTwo Exponential Moving Averages are plotted on the chart. EMA 9 is the fast line shown in orange and EMA 20 is the slow line shown in blue. When EMA 9 is above EMA 20 it confirms an uptrend. When EMA 9 is below EMA 20 it confirms a downtrend. These two lines together act as a trend filter so that trades are only taken in the direction of the current trend.Support and Resistance LogicResistance is calculated as the highest high of the last 20 completed bars. Support is calculated as the lowest low of the last 20 completed bars. These levels are drawn on the chart as short dotted segments at pivot points only so the chart stays clean and not cluttered with continuous lines.Breakout LogicA buy signal is generated when the closing price crosses above the resistance level and at the same time EMA 9 is above EMA 20. This combination confirms that price has broken a key resistance level and the trend is also supporting the move upward. A sell signal is generated when the closing price crosses below the support level and EMA 9 is below EMA 20 confirming a downside breakout with trend alignment.EntryEntry is taken on the same candle where the breakout is confirmed. A green triangle with BUY label appears below the candle for long entry and a red triangle with SELL label appears above the candle for short entry.Exit LogicFor long trades the target is set at 12 percent above the entry price and the stop loss is set at 6 percent below the entry price. For short trades the target is 12 percent below entry and stop loss is 6 percent above entry. Exits are handled automatically by the strategy and labeled as TP +12% when target is hit and SL -6% when stop loss is triggered.Risk to RewardThe strategy maintains a fixed 1:2 risk to reward ratio on every trade. You risk 6 percent to make 12 percent which means even if only 40 percent of trades hit target the strategy remains profitable over time.Best TimeframeThis strategy works best on 5 minute, 15 minutes, & 1 hour charts for intraday and swing trades. The S/R lookback period and EMA lengths can be adjusted from the settings panel based on the stock or asset being traded.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView