Search found 1 match

Go to advanced search

by alex
Tue Dec 13, 2022 7:13 am
Forum: Pine Script Q&A
Topic: how to modify
Replies: 1
Views: 943
 
Jump to post

how to modify

I am a beginner of the PINE language. Can you please advise me on how to modify the following code so that it can be successfully compiled? //@version=5 indicator("dg") src = input(close, "Source") ma = ta.sma(src, 20) max=0 for i = 1 to 999 if ma[i] > ma max=i plot(max)

Go to advanced search