gb50k

Random Walk Generator PRNG


/////////////////////////////////////////////////////////////////////////////
//
// Generates a random walk driven by a pseudo RNG that generates *returns* that are
// uniformly distributed between your upper and lower bound.
// Please drop me a note if you use the code in original or modified form.
// Inspiration and support from 4X4good .... check out his scripts
//
// Specs:
// Implementation of LCG, using "Numerical Recipes" parameter set (m,a,c)
// as described in wiki article (09/2018):
// en.wikipedia.org/wik...ngruential_generator
//
// The "Skew" parameter raises the random return to the specified power
//
// Disclaimer:
// The PRNG is provided "as-is" and this specific implementation has not undergone
// any testing. Use at your own risk.
//
/////////////////////////////////////////////////////////////////////////////
オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?