OPEN-SOURCE SCRIPT

Price Legs: Time & Distance. Measuring moves in time & price

Updated
-Tool to measure price legs in terms of both time and price; gives an idea of frequency of market movements and their typical extent and duration.
-Written for backtesting: seeing times of day where setups are most likely to unfold dynamically; getting an idea of typical and minimum sizes of small/large legs.
-Two sets of editable lookback numbers to measure both small and large legs independently.
-Works across timeframes and assets (units = mins/hours/days dependent on timeframe; units = '$' for indices & futures, 'pips' for FX).

~toggle on/off each set of bull/bear boxes.
~choose lookback/forward length for each set. Increase number for larger legs, decrease for smaller legs.

(for assets outside of the big Indices and FX, you may want to edit the multiplier, pMult, on lines 23-24)

small legs
snapshot
large legs
snapshot
Release Notes
-Added Toggle box for show / hide text in boxes. Default is ON (show)
Release Notes
-Fixed minor bug: Some boxes would very occasionally misprint and cut through/ ignore a pivot high or low. This is now fixed. All else remains the same.
backtestingChart patternsCyclesfrequencymeasuremovesperiodicitypricelegtimeandprice

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


You can buy me a coffee here...

PayPal.Me/twingall
BTC: 3JrhUwNRnKyqhaa1n1AXKeAubNeEFoch6S
ETH erc20: 0x4b0400B1c18503529ab69611e82a934DDe4Ab038
ETH bep20: 0x1F0f03F184079bb1085F8C9dF3a8191C9f5869B3

Disclaimer