This is the same previous script but without the calculation of 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.
Settings for BTCUSD or XBTUSD
Best time frame: 5 minutes