搜索
产品
社区
市场
新闻
经纪商
更多
CN
Black Friday 促销
高达70%折扣
社区
/
脚本
/
Heffae Resolution Commander
OPEN-SOURCE SCRIPT
Heffae Resolution Commander
由SNOW_CITY提供
关注
关注
2018年7月13日
2
6
添加到收藏
添加到收藏
2
2
2018年7月13日
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[string]" 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!
function
Moving Averages
Oscillators
pinecode
pinescript
resolution
scripts
security
timeframe
Trend Analysis
开源脚本
本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受
网站规则
约束。 您可以收藏它以在图表上使用。
想在图表上使用此脚本?
添加到收藏
SNOW_CITY
关注
SNOW_CITY public chat room - Indicator Q&A
tradingview.com/chat/
Indicator access information
pastebin.com/v8sp6Y3R
更多:
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在
使用条款
阅读更多信息。