OPEN-SOURCE SCRIPT

Cheat Code

142
Why Monday & Friday

Monday evening (NY): frequently seeds the weekly expansion. Its DR/IDR often acts as a weekly “starter envelope,” useful for breakout continuation or fade back into the box plays as liquidity builds.

Friday evening (NY): often exposes end-of-week traps (run on stops into the close) and sets expectation boundaries into the following week. Carry these levels forward to catch Monday’s reaction to Friday’s closing structure.

Typical use-cases

Breakout & retest:

Price closes outside the Monday DR/IDR → look for retests of the band edge for continuation.

Liquidity sweep (“trap”) recognition:

Friday session wicks briefly beyond Friday DR/IDR then closes back inside → watch for mean reversion early next week.

Bias filter:

Above both Monday DR midline and Friday DR midline → bias long until proven otherwise; the inverse for shorts.

Session open confluence:

Reactions at the open line frequently mark decision points for momentum vs. fade setups.

(This is a levels framework, not a signals engine. Combine with your execution model: orderflow, S/R, session timing, or higher-TF bias.)

Inputs & styling (quick reference)

Display toggles (per day):

Show DR / IDR / Middle DR / Middle IDR

Show Opening Line

Show DR/IDR Box (choose DR or IDR as box source)

Show Price Labels

Style controls (per day):

Line width (1–4), style (Solid/Dashed/Dotted)

Independent colors for DR, IDR, midlines, open line

Box background opacity

Timezone:

Default America/New_York (changeable).

Optional on-chart warning if your chart TZ differs.

Practical notes

Works on intraday charts; levels are anchored using weekly timestamps for accuracy on any symbol.

Live updating: During the Mon/Fri calc windows, DR/IDR highs/lows and midlines keep updating until the session ends.

Clean drawings: Lines, box, and labels are created once per session and then extended/updated—efficient on resources even with long display windows.

Max elements: Script reserves ample line/box/label capacity for stability across weeks.

Feragatname

Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.