OPEN-SOURCE SCRIPT

Extended Version Nadaraya-Watson Envelope - Aleh Litvinau

236
I added two output parameters to the original indicator:
"Upper Border" and "Lower Border".

The thing is, when the original indicator "Nadaraya-Watson Envelope [LuxAlgo]" operates in Repainting Smoothing mode, the plot() function is not used.
Pine Script has a limitation on importing online data from external indicators if the plot() function is not utilized. In this mode, the indicator draws dashed lines using the line() function.

I only added code that allows the indicator in this mode to output invisible plot() for the last candle. This means that the data can be imported into my indicator for personal use.
------------------------------

Я добавил два выходных параметра в оригинальный индикатор:
"Upper Border" и "Lower Border".

Дело в том, что при работе оригинального индикатора "Nadaraya-Watson Envelope [LuxAlgo]" в режиме Repainting Smoothing не используется функция plot().
Pine Script имеет ограничение на импорт онлайн-данных из сторонних индикаторов, если не задействована функция plot(). В этом режиме индикатор строит пунктирные линии, используя функцию line().

Я добавил в код только то, что позволяет индикатору в этом режиме выводить невидимые plot() для последней свечи. Это означает, что данные можно импортировать в мой индикатор для собственных нужд.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.