TradingView
twingall
9 mar 2023 19:03

Consecutive Unswept Lower Highs/ Higher Lows Counter 

E-mini S&P 500 FuturesCME

Descrizione

Counts consecutive Lower Highs and Higher Lows; number resets to zero when previous pivot high or low gets swept

-To help give an idea of when a retracement / run-on-stops may be overdue. i.e. the higher the counter number grows, the longer we've gone without a proper retracement.

//inputs//
~pivot lookback/lookforward: increase this for more significant pivot highs and lows.
~number of pivot high 'counter' labels (pairs) to show in history.
~formatting options.

Note di rilascio

-update to start the counter at 1 instead of 0

Note di rilascio

-added optional 'spikey' filter for Pivot highs/lows (default off): Use to filter out smooth/unimpressive pivot high&lows. Higher number = more spiky / less rounded pivot highs & lows only

Note di rilascio

-Update showcase chart; change default settings: 'Spikiness' filter default ON.

Note di rilascio

-Added Alert conditions: alerts to be manually set by user (via the 3 dots on indicator status line)

Note di rilascio

-Use ATR multiples for label offset vertical spacing; works on low $ unit price crypto assets now

Note di rilascio

Added realtime sweep labels: choose consecutive pivot high and/or low threshold; label prints as bar is painting, when the pivot is swept (e.g. 5th consecutive higher low pivot low is swept => label print)

Note di rilascio

-Added successive sweep labels: each sweep of a prior successively Lower High or Higher Low gets a label. e.g if it sweeps the last in a sequence of LHs, prints 'ʌ'; if it then sweeps the second last of the LHs, prints double 'ʌ', etc, etc...

Note di rilascio

-updated display chart. Ignore March 18th 2023 update, that's been superseded with the above update.

Note di rilascio

-allow independent toggle on/off of number labels and sweep labels; cleaned up code

Note di rilascio

-added extra 'fixed' alert conditions, to allow default message to automatically print the number of consecutive LHs or HLs pivots reached

Note di rilascio

-added condition to alert on realtime bar. Default is toggled OFF, which means alerts come in one bar later, but it avoids repainting issues.
-added simple alerts for 'pivot high confirmed' or 'pivot low confirmed'; irrespective of consecutive number, these will alert on any pivot high or low being confirmed.
Commenti
tradeleblebi
Please make it show real time sweeps according to the previous pivots
twingall
@tradeleblebi, Done .. edit the labels on lines 105 and 115 if you don't like the format
tradeleblebi
@twingall, You re the best, Thank you but It would be great if you add a button like this as my suggestion, if any number (1 2 3 4 5 6 7 8 doesn't matter) it will show if it sweeps the liquidity. So if you add a button to show all the points where it takes the liquidity, it would be perfect.
twingall
@tradeleblebi, yes, this would be more useful indeed. It's surprisingly hard though. Will update if i get it figured out and working as intended.
twingall
@tradeleblebi, Done. But due to counters/arrays needing to be reset, it may not work as ideally as one would like during choppy price action
tradeleblebi
@twingall, Thank you for your hard work. There is really a lack of indicators in this liquidity topic and it is a bit complicated to understand and create an algorithm.
merlinhargens
crypto markets doesnt work
twingall
merlinhargens
@twingall, appreciate!
Altro