I wanted to see how important risk-managment is.
These are my "Pseudo-Random Number Generators via Pine Script", having uniform distribution between 0 and 1. In my quest for sequential pseudo-random numbers in Pine, tinkering with mathematical chaos, I have come up with these three simple yet handy generators. I believe these may be useful in the future by developers of the Tradingview community. NOTICE: Use...
Binary pseudo random number generator. Generates a number between 0 and 1
Smoothed Random Walk Index. It gives slightly slower but less false signal than stochastic. If it draws double bottom with higher low, long entry is considered. If it draws double with lower high, short entry is considered. For more accuracy, another smoothed RWI with slower setting is needed. If fast setting RWI draws lower high AND slower setting RWI is also...
a few functions to generate pseudo random values.
EXPERIMENTAL: Function to generate a normally distributed pseudo random value. if you find that something doesn't add up, please leave a message bellow.
This is a moving average with a customizable random kernel. You can shape your kernel by selecting your parameters in the settings window. This is not something that is immediately ready to mess with by just applying it on the chart, it is very useful for people who are researching indicators and developing new tools. To see the shape of your kernel you can plug...
Function to return a pseudo random number. you can constrict it to a range and provide a seed to step through on the same bar. thanks to Duyck, for the link.
This script lets you separate alerts into batches, and trigger each batch in either sequential order or (pseudo)random order. You can also specify the number of batches being used. This is helpful when you have alerts to be triggered on every candle, but the number of alerts causes API errors if they are all executed at once.
This script uses a new technique to give truly random output, which can be used to accurately compare real indicators with pure chance.