OPEN-SOURCE SCRIPT
1 - UT Bot Strategy

UT Bot Indicator
Original indicator from user Yo_adriiiiaan
This is a custom strategy version of the original indicator to be able to backtest settings.
To add to your charts:
It uses the ATR to set dynamic trailing stops, which adjust based on market conditions. Here's how it works:
ATR-Based Trailing Stops: The indicator calculates the ATR over a specified period to gauge market volatility. This helps in setting trailing stops that are neither too tight nor too loose.
Key Parameters:
Key Value: Controls the sensitivity of the trailing stop. A higher value means the stop is less sensitive to price movements.
ATR Period: The lookback period for calculating the ATR.
Signal Generation: When the closing price crosses above the trailing stop, a buy signal is generated. Conversely, a cross below triggers a sell signal.
Customize Settings: Adjust the key value and ATR period to suit your trading style and the asset's volatility.
Backtest Yourself: Use TradingView's built-in backtesting feature to see how the strategy performs with your settings.
Original indicator from user Yo_adriiiiaan
This is a custom strategy version of the original indicator to be able to backtest settings.
To add to your charts:
- Copy the script below
- Open Pine Editor on your chart
- Create a new blank strategy
- Paste the code and save
It uses the ATR to set dynamic trailing stops, which adjust based on market conditions. Here's how it works:
ATR-Based Trailing Stops: The indicator calculates the ATR over a specified period to gauge market volatility. This helps in setting trailing stops that are neither too tight nor too loose.
Key Parameters:
Key Value: Controls the sensitivity of the trailing stop. A higher value means the stop is less sensitive to price movements.
ATR Period: The lookback period for calculating the ATR.
Signal Generation: When the closing price crosses above the trailing stop, a buy signal is generated. Conversely, a cross below triggers a sell signal.
Customize Settings: Adjust the key value and ATR period to suit your trading style and the asset's volatility.
Backtest Yourself: Use TradingView's built-in backtesting feature to see how the strategy performs with your settings.
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.