거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
라이브러리

Optimal F for MQL5 (per Ralph Vince) - MetaTrader 5용 라이브러리

조회수:
5771
평가:
(22)
게시됨:
2018.09.23 23:26
업데이트됨:
2018.10.23 12:57
\MQL5\Include\
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

I couldn't find MQL5 code for the Kelly Criterion, so I decided to write it myself; but it turned out that the Kelly Criterion only works for Bernoulli Distributions. This means it works only for fixed profits and losses, i.e. fixed SL and TP, but I rarely do.

So, based upon the work of Ralph Vince's book The Mathematics of Money Management, and borrowing concepts from python code I found online, I created this MQL5 library for Optimal f.

I am including test(s) that I used to verify that my code gives the same results as the example in Ralph Vince's book. That is: +9, +18, +7, +1, +10, -5, -3, -17, -7 .

Note: I set GEOM_MEAN_MIN_TRADES = 0 to have the unit tests run.

Note: This calculates Optimal f only. It does not show how to calculate a position size. That part is up to you.

Note: This code is provided for testing and edification only. UNDERSTAND THE MATHEMATICS BEFORE USING THIS ON A REAL TRADING ACCOUNT! It's highly possible you will wipe out your account if you don't know what you are doing.




Triple fast ema Hull Triple fast ema Hull

Triple fast ema Hull

Fast ema Hull average Fast ema Hull average

Fast ema Hull average

Super smoother Super smoother

Super smoother

Super smoother levels Super smoother levels

Super smoother levels