TradingView
nickbarcomb
12 Jul 2019 pukul 22.53

Trend Lines 

Bitcoin / U.S. dollarBitstamp

Huraian

Automated trend lines

Nota Keluaran

Cleans/ simplifies script and fixes bugs where the a line might not draw.

Also adds a yellow average line

Nota Keluaran

Adds color background to ranges

Nota Keluaran

Attempt to fix "Internal server error" issues...

Nota Keluaran

adds the ability to toggle lines
adds the ability to smooth the source value to partially ignore random spikes

Nota Keluaran

think I finally fixed the runtime error during tick change

Nota Keluaran

simplifies the x,y lookups
adds more customization
removes time-based checks

Nota Keluaran

fixes high, low inits which were cause line to disappear

Nota Keluaran

reduced for loops

Nota Keluaran

adds historical line trace

Nota Keluaran

renames plot lines to more easily appear in alerts dropdown

Nota Keluaran

fixes average line

Nota Keluaran

- Simplifies the UI to be more instantly apparent of the trend and it's start and end points.
- Simplifies the script down to a simple for loop
- Adds toggle for historical trace lines and prints them as stepline
- **HOPEFULLY** fixes the server error issue

Apologies to anyone that was using the previous version whose settings will get reset, but I think you'll enjoy this version much better.

TODOs: The trace points currently only work with non-log view -- update the code to check for log view and update the linear-extrapolation algorithm to a logarithmic-extrapolation

Nota Keluaran

- Adds offset capability (historical view)
- Adds back the criss-cross pattern

Nota Keluaran

Long awaited introduction of indicators on the logarithmic scale!
Unfortunately there is not a variable in PineScript that tells you if you are in log mode or not, so you'll have to toggle it manually.
Komen
Kanefire
Can't believe how helpful this indicator is. I hardly touch anything else anymore. Thanks a bunch! I like it more than the 2.0 because the granularity that the offset and noise reduction offer. Once I get the "code" dialed in for each ticker/time frame, it is like a machine. can just plug in the numbers and wait for the signal. It's upped my trade game a lot. I can't thank you enough. I am curious if you are still interested in developing it further. I have some requests, like when offset is used, it eliminates values on scale and status requiring a little extra work. If these values could be forced that would help. I'd have a couple other requests too... but even as is, it's the best.
nickbarcomb
I've made a slightly simplified version of the indicator over at Trend Lines 2.0
bijoymisson30
Best Technical indicator.
greywolf254
This is one of the best script so far :) Thanks bro for this great script. Looks like the error occur when the new bar shows up. Looking forward to see you solve the issue.
nickbarcomb
@greywolf254, thank you very much. I'm still trying to figure out a work-around for the root cause of the error. My latest guess is that this is a timeout issue caused by the for-loops and the line drawing mechanism being too resource intensive. I'll continue to debug and hopefully TV will optimize the line drawing method.
jacksonprisc
This is a great indicator! So far it’s been really good and useful! Thank you!!
Manoj_Murali
@nickbarcomb Unable to add the indicator to a chart . Error message says "Something went wrong, please try again later".
Byggdft44
What is "Use logarithmic scale" ? How can it help ?
StockSwinger
Hi Nick: Thanks for the script, I agree with the comments below, its a fantastic tool. Hopefully, you can answer a couple of questions? My long and short inputs seem to be reversed. Might be confusion on my part, what do you mean by "Factor?" Are the labels show on the right scale something you added or can they be displayed from within the script?. Again I did not see anything in the code or the input settings to get them to display?

Again, thanks for producing a valuable tool, Michael
nickbarcomb
@StockSwinger, Hi, thank you! The logic behind the long and short settings (apologies about the names, I know they mean different things in the trading world) is that you would pick a short-term number of bars back from the current bar and a long-term multiple back from that. EX: Short Range 21 = find the highest and lowest within the last 21 bars, Long Range Factor 5 = from the Short Range go back 5 times the Short Range to find the highest and lowest. Sorry for the confusion. As for the labels, they are a setting of the viewport -- click on the gear icon in the lower right and go to Labels and turn on the 2 "indicator" options (it can be annoying if you have other indicators with long names).
Lebih