twingall

Pivot Points & Midlines with color selector

twingall Aktualisiert   
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).
Versionshinweise:
~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)
Versionshinweise:
~allow to show Previous day's highs & lows ONLY
~allow to show Pivot& midlines lines ONLY
(default is show all)
Versionshinweise:
-show/hide previous day levels; added user option toggle on/off. Default is not show.
Versionshinweise:
-Added option to print price labels
-Cleaned up code
Versionshinweise:
-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
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?