RicardoSantos

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

Example function of a markov chain monte carlo simulation.
開源腳本

秉持真正的TradingView精神,該腳本的作者將其開源發佈,因此交易者可以理解和驗證它。為作者加油!您可以免費使用它,但是在發佈中重複使用此程式碼受網站規則的約束。您可以把它加入到常用以在圖表上使用它。

想在圖表上使用此腳本?

評論

500 代幣
+1 回覆
500 代幣
回覆
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.
回覆