OPEN-SOURCE SCRIPT

Feature scaler

Theo gorx1
Feature scaler | Pine Utilities series, ready to be used in "study-on-study" fashion |

Includes min-max, normalization, standardization and unit length scaling.
One and only source: en.wikipedia.org/wiki/Feature_scaling
Endpoint inputs allow to set an interval of interest for min-max scaler.

Can be (and should be) applied to other studies, or to the chart itself. In this example, I applied min-max scaling to weighted linear regression's slope values.

Unfortunately, "All data" is still "experimental" and works only on charts where less than 5000 bars are available. max_bars_back() didn't help.

Sup TV
featurelengthminmaxnormalizationPine utilitiesscalerscalingstandardizationstatisticsUNIT
gorx1

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm