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, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.