TradingView

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

3132 뷰
Example function of a markov chain monte carlo simulation.
오픈 소스 스크립트

진정한 TradingView의 정신에 따라, 이 스크립트의 작성자는 스크립트를 오픈소스로 게시했기에 거래자들이 이해하고 확인할 수 있습니다. 작가님께 건배! 스크립트를 무료로 사용할 수 있지만, 게시물에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다.

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

## 코멘트

응답
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 :
응답
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
@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.
응답
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!
응답
프로화일 프로화일설정 계정 및 빌링 리퍼드 프렌즈 코인 나의 서포트 티켓 헬프 센터 비밀메시지 채팅 로그아웃