RodrigoKazuma

RK's Framework 01 - Auto Color Gradient

RodrigoKazuma Cập nhật   
This started as a personal arrays study, but after a few tests I decided to made a framework to get my own scripts simplest, lighter and faster.
And now I'm sharing with you guys.

Is very simple to use:
  • Copy evething inside "RK's Auto Color Gradient Framework" block;
  • Paste anywhere before the plotting;
  • Declare the color variable name calling the function "f_autocolor(___, ___)" with the source you gonna plot and the size of the scale do you want to use to compare the data.


Feel free to use.

Hope brings some profits for you guys!!
Phát hành các Ghi chú:
Version 1.1 notes:

  • Put the script link on the code;
  • Now the choice of the theme is outside the function;
  • I deleted the reverse input and put the explanation to how reverse the scale;
  • And I wrote a simple text to help if anyone wants to add their own color scale gradient.


To change the direction of the gradient scale, just invert the math sign of the source with a simple (-).
Phát hành các Ghi chú:
█ PATCH NOTES: Version 1.2


  • Better Instructions Comments;
  • More themes;
  • Adding new Gradient Scales is easier;


█ HOW TO USE THIS FRAMEWORK:

1 — Copy evething inside "RK's Auto Color Gradient Framework" block;
2 — Paste anywhere before the plotting;
3 — Declare the color variable name calling the function f_autocolor(series, scale_length, theme_number)

ARGUMENTS:
series (series) → Series of values (source) to process.
scale_length (integer) → Number of bars to measure the highest and lowest values
theme_number (integer) → Number of the theme

Feel free to share your success with me: 🤑👍
BTC - bc1qq23w655arvclce7u8zkt4lag08fnctgccs9s9s
ETH - 0xf6cf166Ea5EC550372e179dB1AF579a29Cb91dDf
USDT - 0x8DbC0E889Afb3bec7241eD0E42429A612aa30015 - (ERC20)
Mã nguồn mở

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

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

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

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