Trend Lines

Also adds a yellow average line
adds the ability to smooth the source value to partially ignore random spikes
adds more customization
removes time-based checks
- 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
- Adds back the criss-cross pattern
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.