saurik

Fourth Friday Future

saurik Uppdaterad   
There seems to be an options contract that comes due on the fourth Friday of every month, causing massive dips in the crypto market; this indicator colors your chart to tell you when this is going to happen.
Versionsinformation:
Set short title to "F3".
Versionsinformation:
Simplify code by inlining color.
Versionsinformation:
It turns out the CME micro Bitcoin futures actually expire on the last Friday, not the fourth Friday. I've updated the script, but I haven't found a way to change the name (which doesn't make any sense).
Versionsinformation:
Correctly color right side of bar when it falls on the first of the month.
Versionsinformation:
Mark the Monday following the last Friday--the next regular business day and the date the next futures contract opens--as green.
Versionsinformation:
Adjust buy-back window to account for time zone: it happens at 7am UTC (and 10am UTC, and a bit 12am UTC, but 7am is the key moment).
Versionsinformation:
Update green window to include a fade for the day after the following Monday.
Versionsinformation:
Add a yellow bar for when CME launched the Bitcoin futures and do not render the red/green bars before that moment.
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?