How To Filter Signals On The 1 Minute Scalping Indicator

452
This tutorial shows you how to use external indicators to filter out signals on the 1 Minute Scalping Indicator so that you only get signals that are in the direction of the trend.

Step By Step Process:
1. Pick an external indicator that provides an output value of 1 for bullish, -1 for bearish or 0 for neutral and add it to your chart. We have multiple indicators that can do this, but you can also customize your own indicators to provide this value and use that to filter out signals.
2. Set your desired trend parameters on your external indicator and make sure that indicator is on the same chart as the 1 Minute Scalping Indicator.
3. Go to the indicator settings for the 1 Minute Scalping Indicator and turn on one of the 3 available External Indicator Filters. Then from the dropdown menu, select the external indicator you want to use and make sure to choose the output value that gives the 1, -1 or 0 output for trends. Our indicators will have an output titled "Trend Direction To Send To External Indicators" to make that value easy to find in the dropdown menus.

That's it! Let the 1 Minute Scalping Indicator reload with the external indicator trend values and it will only show buy signals during bullish trends, only show sell signals during bearish trends or no signals during neutral markets. Make sure to back test your setup until you find the best external indicators and settings to use that work best for your trading style and then apply that setup to any chart you would like.

Here is the code you can use to add a trend value to your own custom indicators and send it to the 1 Minute Scalping Indicator:

Pine Script®
trendDirection = 0 if close > ema1 trendDirection := 1 else if close < ema1 trendDirection := -1 else trendDirection := 0 plot(trendDirection, title="Trend Direction To Send To External Indicators", color=#00000000, display=display.data_window)


Change the (close > ema1) and (close < ema1) to use your own variables from within your script.

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.