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.)
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.)
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.