RicardoSantos

Function - simple* Markov Chain Monte Carlo Simulation (MCMC)

Example function of a markov chain monte carlo simulation.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,因此交易者可以理解和验证它。为作者加油! 您可以免费使用它,但是在发布中重复使用此代码受网站规则的约束。您可以收藏它以在图表上使用。

想在图表上使用此脚本?

评论

500 代币
+1 回复
Hi Sir , im the one of admirer of your old Markov Chain script. Thanks for your effort on that script.I have a little question :
500 代币
回复
Noldo Noldo
@Noldo, If we change line 43 and line 44 ( i_iterations and i_start ) can we do more short therm predictions ?
For example : For 1H TF : i_iterations = 100 * 24 * 20 (Converting 1M to 1H timeframe ) and i _start = 500 * 24 * 20
Best regards.
回复
@Noldo, the i_start value would be something like price value the simulation starts at, iterations is the number of steps in the simulation, for running multiple simulations you would need to run the function inside a extra loop with the number of simulations, running that high number of simulations might not be feasible with pinescript.
+1 回复
Noldo RicardoSantos
@RicardoSantos, "if bar_index < i_iterations
output := array.get(M, bar_index)"
I tried to comply with this command and blocked the na value at low timeframes.
回复
Looks like a rate of change of your VPN signal might be useful. Using only VPN on trigger levels is to late, it is more of a trailing indicator then a useful leading indicator to trigger an entry/exit.
回复
nice analysis
回复
Since when has PineScript had a random() function? Nice.
回复
Thanks for sharing!
回复
This publication is now featured in our Editors' Picks: https://www.tradingview.com/scripts/editors-picks/ .
In the name of all TradingViewers, thank you for your valuable contribution to the community, and congrats!
回复
首页 股票筛选器 外汇筛选器 加密货币筛选器 财经日历 关于 图表功能 价格 推荐朋友 网站规则 帮助中心 网站 & 经纪商解决方案 插件 图表解决方案 轻量图表库 博客 & 新闻 Twitter
概览 个人资料设置 账户和账单 推荐朋友 代币 我的客服工单 帮助中心 私人消息 在线聊天 退出