TradingView
JonathanMcFall
2021년 4월 18일 오전 8시 1분

Trending/Ranging 

EUR/USDOANDA

설명

This script is a useful tool to use to identify the current market. It includes three other indicators:
1. ATR (combined with a SMA of the ATR)
2. ADX
3. RSI
It allows you to filter for when the market is trending vs. when the market is ranging by using any of the three indicators. You can also combine them to find extremely good trends to trade, or if you're a channel trader, identify when you wouldn't want to trade. This indicator also includes a time frame setting to allow you to ZOOM OUT and explore the long term trend of the security you are trading. I highly recommend using this indicator as a filter for when you enter a trade or not depending on the system you like to trade.
코멘트
Texsurf73
What do the other background colors indicate? Your instructions only show a red background. Should the other 2 colors be turned off? Or could you explain them to me?
JonathanMcFall
@Texsurf73, There is an error in the code that I am working to fix currently that has to do with adding inputs for the colors. The green color is the ATR filter. It is colored when the ATR is above the ATR's 20-period SMA. This indicates higher ATR values, thus a trending market. The red color is the ADX. I can't really explain the math behind the ADX here, but it is colored when the ADX is above 20. 20 is the value that is widely considered to indicate a trending market, but it could be changed to 25 or 30. The yellow color is the RSI, and it is colored when the RSI is greater than 60 or less than 40. As for which colors you should have on, it's personal preference. Honestly, this script is just something I made for myself as a way to filter trades. I would make sure you understand the three indicators that this script uses before you try to use this script to filter your trades.
Texsurf73
@JonathanMcFall, Thanks! I'm just trying new strategies. Thanks for the explanation!
CelestiumQT
Hey Jonathan is it possible to make an alert for when it is black or ranging? If you could that would be amazing as it could be utilized quite well with Darvis' box trading strategy. Thanks mate!
sdineshkumaar
Hi Jonathan, I am very thankful for the Indicator you have shared, I was in look for an indicator that can help me with ranging markets, my search ended with this Indicator
victorcpwong
Excellent script. Identifying the ranging period is very important because most indicators fail to deliver in the non-trending market.
victorcpwong
Great idea. The logic behind is sound.
더보기