❓ 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
  • 397
    Views
  • 2
    Participants
Last reply from:
DoNotDisturb

Trending Topics

Online now

Members online
1,195
Guests online
10,150
Total visitors
11,345

Forum statistics

Threads
2,346,718
Posts
29,349,755
Members
1,099,552
Latest member
arx_15
Back
Top