twingall

Pivot Points & Midlines with color selector

twingall Mis à jour   
Adapted from Pinescript Manual's "Pivot Points Standard". Added extra levels and midlines as well as user inputs for color and a "show labels" on/off switch.
So this will show the Pivot level, the resulting levels R1,R2,R3,S1,S2,S3 and the midpoint lines between these.
User can choose the Higher timeframe period from which to calculate these pivot levels, as per the original script.
I like to add two of these to a chart, one for daily and one for weekly pivot levels.
If you don't need any particular level, just comment out the appropriate lines (one from each of the second last and third last blocks in the script).
Notes de version:
~added Previous day's high and Previous day's low
~limited the number of historical levels as much as possible (you can tweak these by editing up the numbers in line 8; unfortunately, if you try to make them lower than 26, it throws an error)
Notes de version:
~allow to show Previous day's highs & lows ONLY
~allow to show Pivot& midlines lines ONLY
(default is show all)
Notes de version:
-show/hide previous day levels; added user option toggle on/off. Default is not show.
Notes de version:
-Added option to print price labels
-Cleaned up code
Notes de version:
-added label position choice (left or right).
-added offset bars for current day's labels (offset +(right) or -(left) of last bar index. Only applies when label position is set to 'right'.

You can buy me a coffee here...

PayPal.Me/twingall
BTC: 3JrhUwNRnKyqhaa1n1AXKeAubNeEFoch6S
ETH erc20: 0x4b0400B1c18503529ab69611e82a934DDe4Ab038
ETH bep20: 0x1F0f03F184079bb1085F8C9dF3a8191C9f5869B3
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 ?