TradingView
twingall
3 mars 2023 23:00

Random Price Action Visible Chart 

Bitcoin / U.S. dollarBitstamp

Description

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).

Notes de version

-Fixed errors. Added custom start plot point. Added tooltips.

Notes de version

-added ability to plot whole candles as well as close; plot candles is default

Notes de version

-fixed logic in wick printing. Sidenote: If you want to independently change the wick/tail random range; edit line 25

Notes de version

-added independent wick volatility input. Cleaned up code & formatting
Plus