OPEN-SOURCE SCRIPT

Up or Down?

I read somewhere that candles can easily confuse the eye, making it easy to lose focus. We get distracted by the size of the candle body and the candle's color without paying attention to its true range and how it compares to that of the previous candle.

With Up or Down? you get two signals. The blue arrow below lets you know that the candle's current low and high price are both higher than that of the previous candle -- the range is trending up. Conversely, the red arrow lets you know the low and high are both lower -- the range is trending down.

I designed it with pullbacks in mind. Determine the trend with your favorite indicator. Or use Up or Down? to give you an impression of it. A lot of blue arrows consistently rising broken up by only a few red arrows would indicate an uptrend. Then, wait for signals that don't fit the trend (ie, red arrows in an uptrend). Buy in at the first candle that confirms a return to the trend. (Your mileage may vary.)
candlecandlesCandlestick analysiscandlestickpatternTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer