BigBitsIO

Alert Intervals and Delays Framework [BigBitsIO]

Simply explained, this script, when modified to each specific use case, can allow you to specify that alert conditions are only checked every X seconds (AKA Intervals - as fast as every single second) and that alerts can not occur quicker than the user-specified delay (in seconds)

Explained:
- This will work on any resolution, but for the best results/fastest alerts a premium plan with 1s resolution will work best.
- Be mindful of which alert option you choose when setting up corresponding alerts. On 1s resolution with alerts once per bar you can get alerts up to every second.
- The scan for alerts every X seconds will be when the script can scan, by default every 5th second. If you want it to scan on any and all updates, set it to 1 for 1 second
- The delay between alerts will just require than that many seconds have passed since the last alert was fired (whether it was an actual alert in TradingView or just as recognized by this script)
- To have a custom alert condition met, do your normal indicator logic and check your conditions during the scanning period after the delay has been met, as marked by comments in the code

FAQ
- Why is this script useful?
- Many people do not want to constantly monitor for alerts, and may only want alerts to trigger at certain times, or after certain periods of time
- What is an example?
- You want a 1min resolution RSI alert, but you don't want to see it every minute, or only once.
- By setting your alert to once per bar, or once per minute on a 1min or less resolution chart you can get alerts only every 2min 30sec for example when setting your delay to 150 (seconds)

Warning: Since the scan time and alert times on larger resolutions can not be accessed from previous candles when first added to the chart it should be pretty important that you operate on a chart with a smaller resolution than your delay.

Like and follow!

💻 Website: www.bigbits.io
📺 YouTube: www.youtube.com/bigbits
🎮 Discord: discord.gg/rapMn4z
🐦 Twitter: twitter.com/BigBitsIO
💸 Save $30 on TradingView Paid Plan: bit.ly/2CaRfjs
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

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.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?