RicardoSantos

[RS]Point And Figure Overlay V0

Point and Figure Overlay:
  • tf: time frame to use.
  • mode: ATR or Traditional.
  • modeValue: can be whole number for ATR mode(ex:.15) or floating point value for Traditional(ex:.0.12345).
  • reversal: number of reversal bricks.
Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuyla, bu betiğin yazarı, yatırımcının anlayabilmesi ve doğrulayabilmesi için onu açık kaynak olarak yayınladı. Yazarın eline sağlık! Bunu ücretsiz olarak kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Kullanım Koşulları ile yönetilir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?
study("[RS]Point And Figure Overlay V0", shorttitle="[RS]PFO.V0", overlay=true)
tf = input('D')
mode = input('ATR')
modeValue = input(14.00, type=float)
reversal = input(1)

pf = pointfigure(tickerid, 'close', mode, modeValue, reversal)
pfh = pointfigure(tickerid, 'high', mode, modeValue, reversal)
pfl = pointfigure(tickerid, 'low', mode, modeValue, reversal)

spfo = security(pf, tf, open)
spfc = security(pf, tf, close)
spfh = security(pfh, tf, high)
spfl = security(pfl, tf, low)

p1 = plot(spfo, color=gray)
p2 = plot(spfc, color=black)

osc = spfc > spfo ? spfc : spfo
p0 = plot(osc, color=gray)

fill(p0, p1, color=green, transp=70)
fill(p0, p2, color=maroon, transp=70)

t0 = plot(max(spfo, spfc), color=silver)
t1 = plot(spfh, color=silver)
b0 = plot(min(spfo, spfc), color=silver)
b1 = plot(spfl, color=silver)

fill(t0, t1, color=maroon, transp=40)
fill(b0, b1, color=green, transp=40)