saurik

Fourth Friday Future

saurik Aktualisiert   
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.
Versionshinweise:
Set short title to "F3".
Versionshinweise:
Simplify code by inlining color.
Versionshinweise:
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).
Versionshinweise:
Correctly color right side of bar when it falls on the first of the month.
Versionshinweise:
Mark the Monday following the last Friday--the next regular business day and the date the next futures contract opens--as green.
Versionshinweise:
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).
Versionshinweise:
Update green window to include a fade for the day after the following Monday.
Versionshinweise:
Add a yellow bar for when CME launched the Bitcoin futures and do not render the red/green bars before that moment.
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?