isSat() => dayofweek(time('D')) == dayofweek.saturday and close ? 1 : 0 isSun() => dayofweek(time('D')) == dayofweek.sunday and close ? 1 : 0
bgcolor(disSat and isSat() ? isSat() ? color.yellow : na : na, transp=90) bgcolor(disSun and isSun() ? isSun() ? color.yellow : na : na, transp=90)
itsbs
⋅
Mate, this is so useful. I was looking for some confluence for my theory of the likelihood of a BTC pump on a weekend (whilst it's in a macro downtrend) and this helped massively. Spoiler: it's unlikely without a positive Elon tweet!
Thank you.
grigory.rybalchenko
⋅
@itsbs, clear, that often on Monday there is abnormal ATR
study("weekend", overlay=true)
disSat = input(true, title="Highlight Saturday?")
disSun = input(true, title="Highlight Sunday?")
isSat() => dayofweek(time('D')) == dayofweek.saturday and close ? 1 : 0
isSun() => dayofweek(time('D')) == dayofweek.sunday and close ? 1 : 0
bgcolor(disSat and isSat() ? (isSat() ? color.yellow : na) : na)
bgcolor(disSun and isSun() ? (isSun() ? color.yellow : na) : na)