zivforex

8 HRs Ghost Pivots

Monthly / Weekly / Daily / 8 HRs Ghost pivots
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?
//@version=2

plot(close)

study(title="Ghost Pivots", shorttitle="Ghost Pivots", overlay=true)

s8 = input(true, title="Show Next 8 HR Pivot") 

sd = input(true, title="Show Next Day Pivot")

sw = input(true, title="Show Next Week Pivot")

sm = input(true, title="Show Next Month Pivot")

//TODO: Need to change offsets so pivot is drawn ahead of last bar. The offset

// changes depending on the current time frame being displayed.

eightHR_offset = 0

day_offset = 0

week_offset = 0

month_offset = 0

// 8 HR pivot

etime_pivot = iff(sd==true, security(tickerid, '480', hlc3[0]), na)

//tomorrows pivot

dtime_pivot = iff(sd==true, security(tickerid, 'D', hlc3[0]), na)

//Next Weeks pivot

wtime_pivot = iff(sw == true, security(tickerid, 'W', hlc3[0]), na)

//Next Months pivot

mtime_pivot = iff(sm == true, security(tickerid, 'M', hlc3[0]), na)

plotchar(etime_pivot, color=blue, char="8",text="", location = location.absolute, offset=eightHR_offset)

plotchar(dtime_pivot, color=green, char="d",text="", location = location.absolute, offset=day_offset)

plotchar(wtime_pivot, color=red, char="w",text="", location = location.absolute, offset=week_offset)

plotchar(mtime_pivot, color=purple, char="m",text="", location = location.absolute, offset=month_offset)