OPEN-SOURCE SCRIPT

Reset Every (Price)

Someone requested a high/low price indicator that would reset the "remembered" prices daily. I started out doing just that, and then decided to make it much more configurable.

Choose the units (minutes, hours, days, weeks, months) and the number of those units, and this will reset the highest/lowest value remembered to the current values on your chosen time interval.

This should work with any time interval you desire, within reason...asking for resets every 4000 hours on a monthly chart will probably not work.

GE, monthly, every 7 months:
snapshot

Ford, weekly, every 18 months:
snapshot

Dow Jones Industrial Average, weekly, every 90 days:
snapshot

LTCBTC, daily, every 10 days:
snapshot

ETHUSD, 30 minutes, every 10 days:
snapshot

BTCUSD, 1 minute, every 10 hours:
snapshot

EURUSD, 1 minute, every 50 minutes:
snapshot

Also, I am about to publish another version of this with just one source input that can be applied to any indicator...stay tuned!
configurableDaily ChartshourlyminutesMonthly ChartsSupport and ResistanceTrend AnalysisWeekly Charts

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?

Aviso legal