MTF CISD Trade System + Alerts🔹 Introduction
This indicator, MTF CISD Trade System + Alerts, identifies high-probability trade entries by detecting Change in State of Delivery (CISD) events across up to six user-defined timeframes simultaneously, and only triggering an entry signal when every enabled timeframe agrees on directional bias — confirmed by a matching CISD on the chart's own timeframe.
The core idea is this: when the market's delivery mechanism — the way price is being distributed or accumulated by institutional participants — shifts in the same direction across multiple timeframes at once, that convergence is meaningful. A single timeframe CISD is noise. Six timeframes aligning and then confirming on your entry timeframe is a structurally significant event.
No model of institutional order flow or delivery state is perfect. CISD is a proxy — a price-action-based inference about intent, not direct visibility into the order book. I'll address this limitation honestly throughout.
🔹 The Premise
🔸 What is "Delivery"?
Markets don't move randomly. Price is delivered from one level to another by participants with directional intent. When a large participant — a bank, fund, or algorithm with size — wants to accumulate a long position, they need sellers. When they want to distribute, they need buyers. The process of filling that intent leaves observable footprints in price structure.
Delivery state refers to the current directional intent baked into recent price action. Is the market delivering price upward — making higher closes, respecting higher opens, absorbing sell-side resistance? Or is it delivering downward — closing below opens, treating prior bullish structure as supply?
The key insight is that delivery doesn't change instantaneously. It tends to persist. A market that has been delivering bullishly for the past several candles is more likely to continue doing so than to suddenly reverse — until it shows you structural evidence of a state change.
That evidence is what CISD captures.
🔸 The Mechanics of a CISD
Consider a concrete example. Assume price has been in a bearish delivery phase. The most recent non-inside bearish candle closed at $99 with an open of $101. That open — $101 — becomes a bull target: a structural level that, if reclaimed on a close, suggests the market is no longer delivering bearishly.
Now assume price trades sideways for a few candles and then a candle closes at $102. The prior close was at $100, meaning price was below $101 going into this candle and has now closed above it. That crossover — price transitioning through the open of a prior bearish candle — is a Bullish CISD.
Why does the open matter and not, say, the high or the body midpoint? Because the open of a directional candle represents where price started before commitment was expressed. Reclaiming it suggests that commitment is being challenged at the source. It's the most structurally defensible level to use without access to actual order book data.
The inverse applies for Bearish CISD: the open of the last non-inside bullish candle becomes a bear target, and a close below it — crossing from above — signals a shift toward bearish delivery.
Inside candles are excluded. A candle whose high is lower than the prior high and whose low is higher than the prior low is an inside candle — it expresses no directional commitment of its own. Using it to set a target would contaminate the signal with indecision. The indicator skips inside candles entirely when updating targets.
🔸 Why Multiple Timeframes?
A single CISD on a 5-minute chart happens dozens of times per session. Most are meaningless. They represent micro-fluctuations in a market that is, at higher timeframes, still clearly trending in the opposite direction.
The core challenge in intraday trading is timeframe alignment: you want to be trading with the higher timeframe bias, not against it. A bullish 5-minute CISD during a bearish hourly, daily, and weekly structure is a counter-trend scalp at best, a trap at worst.
Lo and MacKinlay (1988) documented that returns at different frequencies are not independent — price structure at higher timeframes significantly conditions the distribution of outcomes at lower timeframes. This is the academic underpinning of what traders know empirically: trade with the higher timeframe, not against it.
When the Weekly, Daily, H4, H1, M15, and M5 have all individually confirmed a bullish CISD — meaning delivery has demonstrably shifted to bullish on every relevant timeframe — the probability that a long entry will find follow-through is structurally higher than any single-timeframe setup could provide.
Six-timeframe alignment is rare. That rarity is the filter.
🔸 The Confirmation Gate — Why Not Enter Immediately on Alignment?
This is a subtle but critical design decision, and one that separates this system from a naive multi-timeframe crossover.
When a higher timeframe — say, the hourly — registers its CISD and becomes the final piece needed for full bearish alignment, the current 5-minute candle might already have a bullish CISD baked into it. That candle existed before the alignment completed. It's not a response to bearish alignment — it's a relic of the prior bullish structure.
Entering short on that candle would be entering against the very confirmation you're requiring. You'd be using a bullish local signal as a short entry trigger simply because the timing happened to coincide with a higher timeframe shift.
The indicator solves this with a pending state. The moment full alignment is achieved, the system arms a directional pending flag and waits. It does not enter. It listens. The entry only fires when the next local CISD — the one that occurs after alignment is confirmed — appears in the correct direction. A bearish pending state requires a new bearish CISD on the chart timeframe. A bullish pending state requires a new bullish CISD.
The entry is always a fresh confirmation, never a recycled one.
🔹 How It Works
🔸 CISD Detection Engine
The indicator runs an identical CISD detection function on every timeframe, including the local chart timeframe and all six user-selected higher timeframes via request.security. For each timeframe, it maintains two levels:
Bull target — the open of the most recent non-inside bearish candle
Bear target — the open of the most recent non-inside bullish candle
A Bullish CISD fires when the prior close was at or below the bull target and the current close is above it. A Bearish CISD fires when the prior close was at or above the bear target and the current close is below it.
State updates — the "Last CISD" label in the table — only occur on confirmed (closed) bars. This prevents the state from flickering during the formation of a live candle. What you see in the table reflects the last completed directional shift, not a mid-bar reading.
Small green triangles below bars mark Bullish CISD events on the chart timeframe. Small red triangles above bars mark Bearish CISD events. These are visual anchors showing you where delivery shifts are occurring locally — independently of whether alignment is achieved.
🔸 Multi-Timeframe Alignment Table
In the top-right corner, a compact table displays the current CISD state for each of the six configured timeframes.
Green (Bullish) — that timeframe's last confirmed CISD was bullish
Red (Bearish) — that timeframe's last confirmed CISD was bearish
Gray (Neutral) — insufficient history or no CISD has fired yet
Full alignment — all enabled timeframes showing the same state — triggers a green or red background on the chart. This background is persistent: it stays active for the entire duration that alignment holds, giving you a continuous visual context for the trade environment.
Individual timeframes can be enabled or disabled. Disabling a timeframe removes it from the alignment calculation entirely — it doesn't count for or against alignment. This lets you configure the system for your specific trading style, whether that's a 3-timeframe approach for faster setups or all 6 for maximum confluence.
🔸 Entry Signals
Larger triangles — green below the bar for longs, red above the bar for shorts — mark actual entry signals. These only appear when:
All enabled timeframes are aligned in the same direction
The CISD confirmation gate is armed (alignment was freshly achieved or is ongoing)
A new local CISD fires in the matching direction
The entry falls within the configured time window and day-of-week filter
Entries are taken at the close of the confirmation candle. This is an important assumption: in practice, you would place a limit order at the close price or enter at the open of the next candle. Bar-close entries are the most common convention for CISD-based strategies because the CISD itself is only confirmed on the close.
🔸 Trade Lines and Risk Management
When an entry fires, the indicator automatically draws three horizontal lines extending forward in time:
Blue (Entry) — the close price at the moment of entry
Red dashed (Stop Loss) — the open of the entry candle by default, or the low of the prior candle for longs / high of the prior candle for shorts if the "Use Previous Candle for SL" option is enabled
Green dashed (Take Profit) — calculated as Entry + (Risk × RR Ratio) for longs, Entry − (Risk × RR Ratio) for shorts
The Risk-Reward Ratio is fully adjustable. The default is 2.0, meaning TP is twice the distance of SL from entry. Increasing this improves the reward per trade but will reduce win rate as price needs to travel further to close the trade as a winner. Decreasing it improves win rate at the cost of expected value per trade — there is a direct tradeoff.
The stop loss placement assumption matters significantly. Using the entry candle's open assumes you're targeting the candle where delivery shifted as your invalidation point — if price returns to that open, the CISD failed. Using the prior candle's extreme gives the trade slightly more room but widens risk. Neither is universally superior — it depends on the volatility of the instrument and the timeframe you're trading.
Lines extend bar-by-bar until alignment breaks, at which point the trade is considered closed.
🔸 Session and Day-of-Week Filters
The entry filter uses America/New_York timezone with automatic DST adjustment. You set a start and end hour/minute in Eastern time, and the indicator computes whether each potential entry candle's close time falls within that window.
This matters because CISD setups during illiquid hours — Asian session for US equities, overnight for forex majors during off-hours — tend to produce false alignment from low-volume price drift rather than genuine institutional delivery shifts. Restricting entries to the primary session for your instrument significantly reduces noise.
Days of the week are individually toggleable. Sunday and Saturday are off by default. Mondays and Fridays around major economic events are worth monitoring carefully — many traders prefer to disable Friday entries to avoid holding through weekend gaps.
🔸 Performance Statistics Table
In the bottom-left, a live stats table tracks:
Total Trades — all entry signals that fired within the allowed session
Wins — trades where price reached the TP level before alignment broke
Losses — trades where price hit the SL level, or alignment broke before either level was reached
Win Rate — wins as a percentage of total trades
There are limitations here worth stating clearly. The stats count a trade as a loss if alignment breaks before either TP or SL is hit — which is the conservative assumption. In live trading, you might hold the trade past alignment if your personal rules allow it. The stats reflect the mechanical rules of the system as coded, not all possible discretionary interpretations.
🔹 Closing Remarks
CISD is one of the more structurally sound price-action concepts available to retail traders because it is anchored to a specific, objectively defined level — the open of a prior directional candle — rather than a subjective pattern or a lagging average. It doesn't predict the future. It identifies where delivery has demonstrably shifted and asks whether the market is confirming that shift across the timeframes that matter to you.
This system is not a black box that prints money. Full six-timeframe alignment is rare by design. When it occurs, you are looking at a market that has, at every relevant structural level, shifted its delivery state in the same direction. That's meaningful context — not a guarantee.
The most important thing this system can do for your trading is force discipline: you cannot enter unless structure agrees. You cannot enter on a stale signal. You cannot override the session filter in the code. The rules are the rules.
Use it as a confluence tool. Study the setups it finds. Understand why some hit TP and others break alignment early. The patterns in that data will teach you more about your instrument than any indicator description can.
🔹 References
Market Microstructure & Timeframe Dependency
Lo, A. W., & MacKinlay, A. C. (1988). Stock market prices do not follow random walks: Evidence from a simple specification test. Review of Financial Studies, 1(1), 41–66.
Easley, D., & O'Hara, M. (1992). Time and the process of security price adjustment. Journal of Finance, 47(2), 577–605.
Order Flow and Directional Delivery
Hasbrouck, J. (1991). Measuring the information content of stock trades. Journal of Finance, 46(1), 179–207.
Glosten, L. R., & Milgrom, P. R. (1985). Bid, ask and transaction prices in a specialist market with heterogeneously informed traders. Journal of Financial Economics, 14(1), 71–100.
Multi-Timeframe Analysis
Müller, U. A., Dacorogna, M. M., Davé, R. D., Pictet, O. V., Olsen, R. B., & Ward, J. R. (1993). Fractals and intrinsic time — a challenge to econometricians. Olsen & Associates Research Group, Zurich.
אינדיקטור Pine Script®






















