♥ 0 |
Hey Pete, I’ve seen a few labels being created but was wondering if you could create a label showing the range of a linear regression channel from upper LR to lower LR. here is the code for the linear regression channel I’m using. input price = close; plot MiddleLR; def dist = HighestAll(AbsValue(MiddleLR – price)) * (widthOfChannel / 100.0); plot UpperLR = MiddleLR + dist; MiddleLR.SetDefaultColor(GetColor(5)); Marked as spam
|
Private answer
Add this to the bottom of your code:
Full details about adding chart labels can be found here: https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/AddLabel.html Marked as spam
That's awesome Pete. I just didn't get that coding gene, at some level its disappointing but I didn't get the carpentry gene from my dad either and he wasn't a great teacher.
The best part about your answer was the link to ToS on how to create labels. thanks for that.
|
Please log in to post questions.