saurik

Fourth Friday Future

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

Dans le véritable esprit de TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par le règlement. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.

Vous voulez utiliser ce script sur un graphique ?