❓ Help Tradingview help

Status
Not open for further replies.

sanguko

Leecher
ano magandang gawin dito para makagawa nag signal?,bago palang ako sa pine code basic pa lang alam ko....
patoro nag basic arguments para makagawa nag signal on chart.... salamatz


// INPUTS:


src = input(close, title="Source")
len = input(90, title="Arnaud Legoux MA Length", type=input.integer, minval=1)
offset = input(0.85, title="ALMA Offset", type=input.float, minval=0.0001)
sigma = input(6, title="ALMA Sigma Value", type=input.integer, minval=1)
fa = input(defval=5,title="alma1",minval=1)
fb = input(defval=10,title="alma2",minval=1)
fc = input(defval=20,title="alma3",minval=1)
fd = input(defval=30,title="alma4",minval=1)
fe = input(defval=40,title="alma5",minval=1)
ff = input(defval=50,title="alma6",minval=1)

trendALMA = alma(src, len, offset, sigma)

f1 =alma(close,fb,offset=0.85,sigma=6)
f2 =alma(close,fc,offset=0.85,sigma=6)
f3 =alma(close,fd,offset=0.85,sigma=6)
f4 =alma(close,fe,offset=0.85,sigma=6)
f5 =alma(close,ff,offset=0.85,sigma=6)




plot(f1,title="f1",color=trendALMA >= trendALMA[1] ? color.new(color.lime,10) : color.new(color.red,10),linewidth=1)
plot(f2,title="f2",color=trendALMA >= trendALMA[1] ? color.new(color.lime,10) : color.new(color.red,10),linewidth=1)
plot(f3,title="f3",color=trendALMA >= trendALMA[1] ? color.new(color.lime,10) : color.new(color.red,10),linewidth=1)
plot(f4,title="f4",color=trendALMA >= trendALMA[1] ? color.new(color.lime,10) : color.new(color.red,10),linewidth=1)
plot(f5,title="f5",color=trendALMA >= trendALMA[1] ? color.new(color.lime,10) : color.new(color.red,10),linewidth=1)



// PLOTTING:
almacolor = trendALMA >= trendALMA[1] ? color.new(color.lime,10) : color.new(color.red,10)
h1 = plot(trendALMA, title="p0", color=almacolor, linewidth=2)
h2 = plot(hl2,title="p1",color=color.new(color.black,90))
fill(h1, h2 color=low > trendALMA ? color.new(color.green,90) : color.new(color.red,90))
 
Status
Not open for further replies.

About this Thread

  • 3
    Replies
  • 391
    Views
  • 2
    Participants
Last reply from:
DoNotDisturb

Trending Topics

Online now

Members online
514
Guests online
5,630
Total visitors
6,144

Forum statistics

Threads
2,326,188
Posts
29,227,380
Members
1,167,987
Latest member
topits16
Back
Top