6F Signals + EMA Filter + Dynamic SL & TP — Strategy by Ravi_021

By Ravi_021

Performance Metrics

Description

6F Signals + EMA Filter + Dynamic SL & TPA clean Heikin Ashi-based strategy that generates high-probability buy and sell signals with trend filtering and smart risk management.How It WorksThe script calculates Heikin Ashi candles in the background and watches for color changes (green ↔ red). When the candle color flips, it marks the high and low of that transition candle. A Buy signal fires when price closes above the marked high; a Sell signal fires when price closes below the marked low. Only one signal is allowed per color change to keep things clean.Built-in Filters & Risk ToolsMA Trend Filter — Uses a fast and slow MA (SMA or EMA, adjustable). Background turns green in bullish conditions and red in bearish conditions so you can quickly see the trend.Dynamic Stop-Loss — Initial stop is placed beyond the previous Heikin Ashi low/high with a buffer. The stop then trails favorably as new lows/highs form.Fixed Take-Profit — Set a percentage target (default 3%) from entry.Visuals — Optional labels showing Entry / SL / TP / leverage, arrows, moving stop-loss lines, and colored HA levels.Strategy FeaturesWorks on any symbol and timeframeOpposite-signal closes the current position and flips directionConfigurable backtest start dateAlert-ready (includes formatted text + JSON payload for automation platforms like TradersPost)Best Used ForTrend-following entries with defined risk. Ideal for traders who want clear visual signals, automatic trailing stops, and ready-to-use alerts without clutter.Adjust the MA lengths, TP %, and SL buffer to match your style and the instrument you’re trading.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView