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:

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

Indicator access information
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?