OPEN-SOURCE SCRIPT
更新済 Morne's Multi-TF Fib + MA + BB + Stochastic

Multi-Timeframe Fibonacci + MA + Bollinger Bands + Stochastic
OVERVIEW
An all-in-one overlay that combines two independent, timeframe-locked Fibonacci
grids with a standard trend and momentum toolkit, so you can read higher-timeframe
structure without leaving your working chart.
WHAT IT PLOTS
- Annual Fibonacci (yellow) — anchored to the PREVIOUS full calendar year's high
and low, sourced from a configurable timeframe (Weekly by default). Recalculates
once a year and then stays fixed, giving you the macro yearly range.
- Weekly Fibonacci (red, or a per-level palette) — anchored to the CURRENT rolling
week's high and low, sourced from H4 by default. Updates live through the week.
- Both grids auto-detect direction (whether the high or the low formed first) and
plot the full set: 0, 23.6, 50, 61.8, 78.6, 88.6, 100, plus 127 / 161.8 and
-127 / -161.8 extensions.
- Two moving averages (21 & 100 by default; SMA / EMA / SMMA / LWMA selectable).
- Bollinger Bands (20, 2 deviations).
- Stochastic oscillator (50, 24, 1) in a separate lower pane.
Because the two Fib layers are locked to their source timeframes, they render
correctly on ANY chart timeframe — view an H1 chart and still see the weekly- and
H4-derived grids, correctly scaled.
HOW TO USE IT
Treat the yearly grid as macro structure and the weekly grid as intraweek structure.
Confluence — where a yearly level, a weekly level, a moving average, or a band edge
line up — is where these levels are most worth watching. The MAs and Stochastic add
trend and momentum context around them.
SETTINGS
Every layer has independent on/off toggles, colour, line width, line style, label
size, and left/right bar extension. The Weekly grid can be a single colour or a
per-level palette. All periods and methods are editable via inputs.
NOTES
The weekly reset uses a Monday 00:00 UTC boundary; adjust the source timeframes to
suit your instrument. This script is an analysis tool, not financial advice.
OVERVIEW
An all-in-one overlay that combines two independent, timeframe-locked Fibonacci
grids with a standard trend and momentum toolkit, so you can read higher-timeframe
structure without leaving your working chart.
WHAT IT PLOTS
- Annual Fibonacci (yellow) — anchored to the PREVIOUS full calendar year's high
and low, sourced from a configurable timeframe (Weekly by default). Recalculates
once a year and then stays fixed, giving you the macro yearly range.
- Weekly Fibonacci (red, or a per-level palette) — anchored to the CURRENT rolling
week's high and low, sourced from H4 by default. Updates live through the week.
- Both grids auto-detect direction (whether the high or the low formed first) and
plot the full set: 0, 23.6, 50, 61.8, 78.6, 88.6, 100, plus 127 / 161.8 and
-127 / -161.8 extensions.
- Two moving averages (21 & 100 by default; SMA / EMA / SMMA / LWMA selectable).
- Bollinger Bands (20, 2 deviations).
- Stochastic oscillator (50, 24, 1) in a separate lower pane.
Because the two Fib layers are locked to their source timeframes, they render
correctly on ANY chart timeframe — view an H1 chart and still see the weekly- and
H4-derived grids, correctly scaled.
HOW TO USE IT
Treat the yearly grid as macro structure and the weekly grid as intraweek structure.
Confluence — where a yearly level, a weekly level, a moving average, or a band edge
line up — is where these levels are most worth watching. The MAs and Stochastic add
trend and momentum context around them.
SETTINGS
Every layer has independent on/off toggles, colour, line width, line style, label
size, and left/right bar extension. The Weekly grid can be a single colour or a
per-level palette. All periods and methods are editable via inputs.
NOTES
The weekly reset uses a Monday 00:00 UTC boundary; adjust the source timeframes to
suit your instrument. This script is an analysis tool, not financial advice.
リリースノート
REV 5 – PREVIOUS-WEEK FIB, 8/21 EMA AND TRADE SIGNALSThis update adds a complete signal engine on top of the existing Fib, MA, Bollinger Band and Stochastic layout, and changes how the weekly Fibonacci layer is anchored. All existing visual settings (bars back/forward, colours, label sizes, overlap dashing, anchor markers) are kept.
1. WEEKLY FIB NOW USES THE PREVIOUS WEEK
- The weekly Fibonacci layer is now drawn on the previous completed week's high and low, instead of the current (still forming) week. Levels no longer shift while the week is in progress.
- Week boundaries now follow the exchange's own weekly session, so markets that open on Sunday (e.g. forex) roll over correctly.
- Updated level set (used by both the Annual and Weekly layers):
-127, 0, 23.6, 38.2, 50, 61.8, 78.6, 88.6, 100, 127
- 38.2% has been added; 161.8% and -161.8% have been removed.
- The 7th level (default 78.6) is now a user input, so it can be adjusted if a different level is preferred.
- The multi-colour palette has been updated to match the new levels, including a new 38.2% colour.
- The legend now shows "Prev-week Fib -> wk of [date]" so it is clear which week the levels are drawn from.
2. PREVIOUS-WEEK HIGH / LOW LINES
- New optional step-lines plot the previous week's high and low across the chart, with their own colour settings.
- These act as reference trend lines for trade management and are visible historically, not only on the latest bar.
3. MOVING AVERAGE DEFAULTS
- MA #1 is now an 8 EMA (fast) and MA #2 is now a 21 EMA (slow).
- Length and type (SMA, EMA, SMMA, LWMA) remain fully adjustable.
4. NEW SIGNAL ENGINE
Long setup:
- The 8 EMA must be above BOTH the Bollinger Band middle and the 21 EMA.
- A candle must then close above the BB middle within the setup window (default 5 bars).
Short setup:
- The 8 EMA must be below BOTH the BB middle and the 21 EMA.
- A candle must then close below the BB middle within the setup window.
ATR range filter (optional, on by default):
- Skips entries where the break candle is over-extended.
- Default limits: close no more than 1.0 x ATR beyond the BB middle, and candle range no more than 2.0 x ATR. Both are adjustable.
- Skipped candles are marked with a small grey "x" so they can be reviewed.
Trade management:
- Stop loss starts at the opposite Bollinger Band (lower band for longs, upper band for shorts).
- Optional trailing: the stop follows the band as price moves in the trade's favour and never moves backwards.
- Take profit is the far band (upper band for longs, lower band for shorts) and updates as the bands move.
- Optional early exit: closes the signal when the 21 EMA crosses back through the BB middle against the trade.
- If a single candle touches both the stop and the target, it is treated as a stop-out (conservative).
- Only one signal is tracked at a time; new setups are ignored until the current one exits.
5. CHART MARKERS AND LINES
- Small circles: heads-up (8 EMA has crossed one of the two lines).
- LONG / SHORT triangles: confirmed entry signals.
- TP / SL / EX labels: exits by take profit, stop loss or early exit.
- Entry, SL and TP lines are drawn while a signal is active.
- The legend has a new status row showing Flat, Setup waiting, or the active signal with entry, SL and TP prices.
6. ALERTS
Built for manual trading, with notifications at each stage:
1. Heads-up – 8 EMA has crossed the BB middle or the 21 EMA, but not both yet.
2. Setup – 8 EMA is past both lines; waiting for a qualifying close.
3. Entry – long or short signal confirmed.
4. Exit – take profit, stop loss or early exit.
- Each stage is available as a separate alert condition.
- For detailed messages including entry, SL, TP and previous-week high/low prices, create an alert on this indicator using "Any alert() function call".
- All alerts fire once per bar close, so they do not trigger on unconfirmed candles.
7. OTHER
- All signal settings are grouped under "Signals (8/21 EMA + BB mid)" and can be switched off entirely.
- Bollinger Band "Shift" is now labelled as visual only; signals always use the unshifted bands.
- Works on any chart timeframe; the Fib source timeframes remain adjustable inputs.
NOTE
This script provides visual signals and alerts for analysis only. It does not place trades and is not financial advice. Always apply your own judgement and risk management.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。