SNOW_CITY

Heffae Resolution Commander

This is a script to call resolutions with some math on top of your base resolution.

THIS IS NOT AN INDICATOR TO USE ON A CHART!!! The resolution call function is really useful for your own scripting ideas!

Using the modulo operator to quantize integer values, it works by converting the modified resolution integer to a 4 digit string value.

The function within this script is what is valuable, use it within your own scripts to call funny resolutions otherwise difficult to calculate.

You cannot add series expressions to the resolution value since pine does not allow "series" as a resolution for a security call
  • However, you could easily stack a crapload of these together and use
  • an expression to switch the referenced security function for your purposes.


The SMA and plot overlay are just there to show a visual example of how the function works.


You can view the raw timeframe output integer by getting rid of tostring(x) and // out the security calls,
plotting the raw function outputs.

For those interested in the verbose version of the timeframe mod function, showing all the steps, here is a pastebin:
https://pastebin.com/hR6hFnUZ

Cheers! Drop a line / comment if you enjoy or have any questions on how to integrate this into your script@!
The Modulo operator is so much fun!

SNOW_CITY public chat room - Indicator Q&A
www.tradingview.com/chat/

Indicator access information
pastebin.com/v8sp6Y3R
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 đồ?