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. اقرأ المزيد في شروط الاستخدام.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟