OPEN-SOURCE SCRIPT
Updated

Random Price Action Visible Chart

3728
plots randomly generated price (closing basis) from LHS of the chart. Re-plots each time you scroll

-just a curiosity really; perhaps a lesson in seeing patterns where there are none; 'fooled by randomness' etc.
-always anchors/starts from the real close of the asset on the visible Left hand side of the chart.
-adjust ATR as you like (bigger = probably more reliable/realistic).
-adjust ATRmultiple as you like (discretionary; basically how many ATR ranges above/below last bar's random close, will the maximum random value above/below be; default is 1.5x (arbitrary).
Release Notes
-Fixed errors. Added custom start plot point. Added tooltips.
Release Notes
-added ability to plot whole candles as well as close; plot candles is default
Release Notes
-fixed logic in wick printing. Sidenote: If you want to independently change the wick/tail random range; edit line 25
Release Notes
-added independent wick volatility input. Cleaned up code & formatting

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.