Plot STD Dev in Pinescript with custom parameters

好久不见. 提交于 2021-01-29 19:03:36

问题


Can anyone let me know how to plot STD Dev in Pinescript using custom parameters as mentioned below

Period : 20 Multiplier : 4 Source : Close

IS this correct x = 4 * stdev(close, 20)


回答1:


Your code looks correct.
You could also make input() variables for those variables.
It'll be more convenient to change them, rather than hard-code them.
For more information, see the answer to this question:
Calculating standard deviation of last N elements of in a pine series
It contains a custom implementation of a standard deviation calculation.



来源:https://stackoverflow.com/questions/64837476/plot-std-dev-in-pinescript-with-custom-parameters

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!