This is the same previous script but without the Deribit index (for BITMEX users for example) that can give problems due to no connection with any of the 6 exchanges. Now use 'close' as source.
BTCUSD, XBTUSD, ...
Best time frame: 5 minutes
Alerts: 'once per bar'