This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
3
Help with indicator not displaying from higher timeframe in lower timeframe
Post Body
So I am trying to display KST from the 15 minute timeframe while looking at the 5 minute timeframe in tradingview.
I know that request.security() is the way to go about this, but I am unsure what I'm doing wrong.
I've tried both with and without kst / sig having request.security() on them with no change. Either way there isn't a KST displayed at all in any timeframe, it's just a blank area with no error messages.
I would greatly appreciate some help!
roclen1 = request.security("", "15", input.int(17, minval=1, title='ROC Length #1'))
roclen2 = request.security("", "15", input.int(12, minval=1, title='ROC Length #2'))
roclen3 = request.security("", "15", input.int(20, minval=1, title='ROC Length #3'))
roclen4 = request.security("", "15", input.int(25, minval=1, title='ROC Length #4'))
smalen1 = request.security("", "15", input.int(6, minval=1, title='SMA Length #1'))
smalen2 = request.security("", "15", input.int(5, minval=1, title='SMA Length #2'))
smalen3 = request.security("", "15", input.int(1, minval=1, title='SMA Length #3'))
smalen4 = request.security("", "15", input.int(1, minval=1, title='SMA Length #4'))
siglen = request.security("", "15", input.int(8, minval=1, title='Signal Line Length'))
smaroc(roclen, smalen) =>
ta.sma(ta.roc(close, roclen), smalen)
kst = request.security("MGC1!", "15", smaroc(roclen1, smalen1) 2 * smaroc(roclen2, smalen2) 3 * smaroc(roclen3, smalen3) 4 * smaroc(roclen4, smalen4))
sig = request.security("MGC1!", "15", ta.sma(kst, siglen))
plot(kst, color=color.new(color.green, 0), title='KST')
plot(sig, color=color.new(color.red, 0), title='Signal')
hline(0, title='Zero')
Author
Account Strength
100%
Account Age
11 years
Verified Email
Yes
Verified Flair
Yes
Total Karma
335
Link Karma
163
Comment Karma
172
Profile updated: 2 days ago
Posts updated: 4 days ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 10 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/pinescript/...