OPEN-SOURCE SCRIPT
Mis à jour Key Levels (Time Frames - Weekly,Monthly,Quarterly,Yearly)

This indicator plots the 4h, Daily, Weekly, Monthly, Quarterly, Yearly Open High, Low and Mids.
You can watch how these institutional trading levels work as support and resistance.
Most Important you can add alerts to these levels with a few clicks.
Just add/remove unnecessary levels for scaling problems.
For any error/suggestion/improvement just let me know.
You can watch how these institutional trading levels work as support and resistance.
Most Important you can add alerts to these levels with a few clicks.
Just add/remove unnecessary levels for scaling problems.
For any error/suggestion/improvement just let me know.
Notes de version
New time frame: Previous Daily OpenNew alarms: Previous Weekly Mid, Previous Quarterly Mid, Yearly Mid
New labels for time frame intersections like: "DO / WO", "WO / MO"
Time Frames and Abbreviations
"4hO": 4h Open
"P4hH": Previous 4h High
"P4hL": Previous 4h Low
"P4hM": Previous 4h Mid
"MondayH": Monday High
"MondayL": Monday Low
"MondayM": Monday Mid
"DO": Daily Open:
"PDO": Previous Daily Open
"PDH": Previous Daily High
"PDL": Previous Day Low
"PDM": Previous Day Mid
"WO": Weekly Open
"PWO": Previous Weekly Open
"PWH": Previous Weekly High
"PWL": Previous Weekly Low
"PWM": Previous Weekly Mid
"MO": Monthly Open
"PMO": Previous Monthly Open
"PMH": Previous Monthly High
"PML": Previous Monthly Low
"PMM": Previous Monthly Mid
"QO": Quarterly Open
"PQO": Previous Quarterly Open
"PQH": Previous Quarterly High
"PQL": Previous Quarterly Low
"PQM": Previous Quarterly Mid
"YO": Yearly Open
"PYO": Previous Yearly Open
"YH": Yearly High
"YL": Yearly Low
"YM": Yearly Mid
Notes de version
New Alarms: Monday High, Monday Low, Monday Mid, Previous Weekly High, Previous Weekly Low, Previous Monthly High, Previous Monthly Low, Previous Quarterly High, Previous Quarterly LowNotes de version
Code cleanup.Notes de version
"Daily Open" color change bug corrected. Notes de version
Version 2: rewritten in Pine Script v6. Most of this update comes from your comments, thank you.FIXES
• Monday range on forex and futures: there the trading day starts in the evening, and the Monday High/Low/Mid were overwritten with Tuesday's range. They now always come from Monday's session. (Reda10, Gr3gory)
• Levels on higher chart timeframes: levels of a timeframe that is not above the chart's (e.g. weekly levels on a weekly chart, 4h levels on a 12h chart) are now hidden instead of showing wrong values. On weekly charts the monthly, quarterly and yearly levels are now also correct in weeks that start in the previous month. (kalpeshbrahmbhatt3, dipoozpatil8)
• Overlapping labels: levels close to each other now share one label, e.g. "PWL / PML". Set the distance with "Merge labels closer than (× ATR 14)"; 0 merges only equal prices. (richie52592)
ALERTS
• One alert now covers all enabled levels, including the daily and 4h levels (Alkanalk_oaalk, Mastertrader7): add an alert on the indicator and choose "Any alert() function call". Each message names the level and its price, e.g. "BTCUSDT: Previous 4h Mid (P4hM) touched at 83684.33".
• Trigger (Alerts section of the settings):
- First touch (untested levels only), the default: alerts the first time a bar reaches a level after the level is set. A level that was already touched in its period, also before you created the alert, stays silent until its value changes (the next day for daily levels, the next week for weekly levels and the Monday range). Meant for untested levels and liquidity sweeps.
- Close cross: alerts on every bar that closes on the other side of a level.
• The old per-level alert conditions are gone. If you used them, create a new alert as described above.
NEW LEVELS (all off by default, so your chart looks the same until you turn them on)
• Previous close of every timeframe: P4hC, PDC, PWC, PMC, PQC, PYC (haastyle, joe007, iaslogin)
• Previous year high, low and mid: PYH, PYL, PYM (SJWLC)
• Current high, low and mid of every timeframe, e.g. DH, DL, DM, WH, WL, WM (the yearly ones were already there as YH, YL, YM)
• Previous 4h open: P4hO
• Midnight open: MNO, with a timezone setting (default America/New_York), on charts of 1 hour or lower (AstroXtrading, @UnknownUnicorn85858111)
LABELS
• "Show price" adds each level's price to its label. (marcushouston82)
• "Full level names" shows e.g. "Previous Weekly High" instead of "PWH". It replaces the unused "Always Show" option. (Polodagreat)
• Hover a label to see the full names and prices of all levels in it.
Existing options kept their place in the settings, so your saved settings should carry over. New options were added to each group.
Notes de version
Version 2.1• Labels now sit closer to the price: the default "Label distance (bars)" is 8 instead of 20. If you already use the indicator, your saved value stays; you can change it in the settings.
• New chart image showing version 2.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.