Date-selected Synch and Compare Script Module [yoxxx]

This Script is a Convenience Script Module for calculations based or started on a fix time / date.
(In difference to bar_index-based where the reference point is shifting from bar to bar, thus is dynamic).

Purpose examples:
- Comparison by start date
- Time driven studies or strategies
- Measuring from Date of Interest

The script also contains a date input box with the feature of auto-converting the default time to local user time (a newer feature of Tradingview which too me a lot of research to find; so here integrated).
Last not least it the module gives you a ready to go example for multi security comparison on percentage scale with a free selectable start date.


P.S:. For further notes look at the script code.
They are concerning usage and how avoiding some strange display issues.
Скрипт с открытым кодом

В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения. Вы можете добавить этот скрипт в избранное и использовать его на графике.

Хотите использовать этот скрипт на графике?


So my friend, I searched for this for quite a while to be able to view 40 diff crypto's % gains starting from when Bitcoin had a bottom (to see which racehorses were out of the gates the fastest). Wish I would have found this sooner. One of the other user selectable options that split my friggin skull was when I wanted to be able to basically "reset" the time from where the % gains started calculating from. So the option was a user selectable interval that when the interval was reached (in bars) then the % gains plots would reset to 0. I was able to work it out but am not 100% satisfied with the result bc every time the plots reset to zero I end up losing 2 bars worth of movement (which isnt a HUGE deal but big enough that I keep thinking about it thus am writing it here. If I was to share the script with you, would you have any interest in checking it out to see if you could easily see another way around it that perhaps Ii missed? It is the crux of an otherwise bad-ass script (in my eyes at least). Now, if your too busy I would COMPLETELY understand and wouldnt hold it against you. Have a great day bud.