OPEN-SOURCE SCRIPT
alertable spaceman v2

slight modification to Key Levels SpacemanBTC IDWM script
credit: spacemanbtc
this is a new version to fix a bug that would pop unwanted alerts on certain levels. I realised the issue was how tradingview handles time. in tradingview,1D paints a new candle at 7pm NY time, but in low timeframe, the "next" day doesn't officially start until 12a.m, like a military clock would. this would cause some repainting issues.
implemented some changes by using stable values that would hopefully circumvent that. script is open sourced in case anyone wants to use it to make changes in case there are other issues
credit: spacemanbtc
this is a new version to fix a bug that would pop unwanted alerts on certain levels. I realised the issue was how tradingview handles time. in tradingview,1D paints a new candle at 7pm NY time, but in low timeframe, the "next" day doesn't officially start until 12a.m, like a military clock would. this would cause some repainting issues.
implemented some changes by using stable values that would hopefully circumvent that. script is open sourced in case anyone wants to use it to make changes in case there are other issues
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.