OPEN-SOURCE SCRIPT
تم تحديثه MTF Wick Detector

MTF Wick Detector
Spot rejection wicks from higher timeframes without ever leaving your chart.
MTF Wick Detector scans the 15m, 30m, 1h, 2h and 4h candles in real time and marks every significant wick directly on your current chart — no matter what timeframe you are trading on. Instead of flipping between five charts to check whether the 4h just printed a rejection, you see it the moment it happens, exactly where it happened.
WHAT IT DOES
• Monitors five higher timeframes at once: 15m, 30m, 1h, 2h, 4h — each one can be toggled on/off and has its own color.
• When a higher-timeframe candle closes with a significant wick, a small triangle is drawn on the exact chart bar that printed the extreme, at the exact price of the wick tip — above the bar for upper wicks (selling rejection), below it for lower wicks (buying rejection).
• Works only on closed HTF candles → no repainting. What you see in a backtest is what you would have seen live.
• Optional summary table (top right) shows the latest wick readings for every active timeframe.
• Built-in alert: get notified when a significant wick prints on any active timeframe.
HOW A "SIGNIFICANT WICK" IS DEFINED
Upper wick = high − max(open, close). Lower wick = min(open, close) − low.
A wick is marked only if it passes BOTH filters (set either to 0 to disable it):
1. Percent of range — the wick must be at least X% of the candle's total high-to-low range (default 50%). This captures the proportion: the candle visually looks like a rejection.
2. Minimum height in pipettes — the wick must be at least X ticks tall (default 50; on 5-digit FX quotes 1 pipette = 0.00001, so 50 pipettes = 5 pips). This removes the noise: tiny doji candles that are "50% wick" but only a couple of pips tall are ignored.
The combination is the point: a proportional filter alone flags meaningless micro-candles, an absolute filter alone flags big candles with irrelevant proportions. Together they isolate candles that actually show rejection.
WHY WICKS MATTER
A large wick on a higher timeframe means price traveled somewhere and was aggressively pushed back before the candle closed — a footprint of absorption or rejection at that level. These levels frequently act as support/resistance and as origin points for reversals. Seeing them appear live on your execution timeframe lets you react while the information is still fresh.
HOW TO USE IT
• Best used on chart timeframes at or below 15m (scalping/intraday execution charts). The chart timeframe should always be lower than or equal to the timeframes you monitor.
• Color code: orange = 15m, yellow = 30m, aqua = 1h, purple = 2h, green = 4h (all customizable).
• Stacked triangles of different colors on the same bar = multiple timeframes rejecting the same level — the strongest signal this tool produces.
• Tune the two filters to your instrument: the pipette threshold uses the symbol's own tick size, so it adapts automatically from FX to futures, but the right number differs per market.
LIMITATIONS (read before using)
• Signals appear only after the HTF candle closes — by design (no repaint), which means the marker arrives at candle close, not at the wick's live formation.
• A wick is context, not a trade signal. This tool tells you WHERE rejection happened; it does not tell you whether to fade it or follow it.
• On chart timeframes above 15m, lower-timeframe requests return sampled data — keep the chart TF at or below the lowest monitored TF.
Feedback and feature requests are welcome in the comments.
Spot rejection wicks from higher timeframes without ever leaving your chart.
MTF Wick Detector scans the 15m, 30m, 1h, 2h and 4h candles in real time and marks every significant wick directly on your current chart — no matter what timeframe you are trading on. Instead of flipping between five charts to check whether the 4h just printed a rejection, you see it the moment it happens, exactly where it happened.
WHAT IT DOES
• Monitors five higher timeframes at once: 15m, 30m, 1h, 2h, 4h — each one can be toggled on/off and has its own color.
• When a higher-timeframe candle closes with a significant wick, a small triangle is drawn on the exact chart bar that printed the extreme, at the exact price of the wick tip — above the bar for upper wicks (selling rejection), below it for lower wicks (buying rejection).
• Works only on closed HTF candles → no repainting. What you see in a backtest is what you would have seen live.
• Optional summary table (top right) shows the latest wick readings for every active timeframe.
• Built-in alert: get notified when a significant wick prints on any active timeframe.
HOW A "SIGNIFICANT WICK" IS DEFINED
Upper wick = high − max(open, close). Lower wick = min(open, close) − low.
A wick is marked only if it passes BOTH filters (set either to 0 to disable it):
1. Percent of range — the wick must be at least X% of the candle's total high-to-low range (default 50%). This captures the proportion: the candle visually looks like a rejection.
2. Minimum height in pipettes — the wick must be at least X ticks tall (default 50; on 5-digit FX quotes 1 pipette = 0.00001, so 50 pipettes = 5 pips). This removes the noise: tiny doji candles that are "50% wick" but only a couple of pips tall are ignored.
The combination is the point: a proportional filter alone flags meaningless micro-candles, an absolute filter alone flags big candles with irrelevant proportions. Together they isolate candles that actually show rejection.
WHY WICKS MATTER
A large wick on a higher timeframe means price traveled somewhere and was aggressively pushed back before the candle closed — a footprint of absorption or rejection at that level. These levels frequently act as support/resistance and as origin points for reversals. Seeing them appear live on your execution timeframe lets you react while the information is still fresh.
HOW TO USE IT
• Best used on chart timeframes at or below 15m (scalping/intraday execution charts). The chart timeframe should always be lower than or equal to the timeframes you monitor.
• Color code: orange = 15m, yellow = 30m, aqua = 1h, purple = 2h, green = 4h (all customizable).
• Stacked triangles of different colors on the same bar = multiple timeframes rejecting the same level — the strongest signal this tool produces.
• Tune the two filters to your instrument: the pipette threshold uses the symbol's own tick size, so it adapts automatically from FX to futures, but the right number differs per market.
LIMITATIONS (read before using)
• Signals appear only after the HTF candle closes — by design (no repaint), which means the marker arrives at candle close, not at the wick's live formation.
• A wick is context, not a trade signal. This tool tells you WHERE rejection happened; it does not tell you whether to fade it or follow it.
• On chart timeframes above 15m, lower-timeframe requests return sampled data — keep the chart TF at or below the lowest monitored TF.
Feedback and feature requests are welcome in the comments.
ملاحظات الأخبار
Fixed a one-candle misalignment on historical bars. Wick detection now uses the canonical confirmed-candle pattern ([1] offset with lookahead_on), so markers are evaluated and placed on exactly the HTF candle that just closed — both on historical and real-time data. Previously, some historical signals could be missing or attached to the wrong candle. Still strictly non-repainting: only closed candles are ever evaluated.
New chart-TF guard.
Signals for a monitored timeframe are now shown only when the chart timeframe is lower than or equal to it. On higher chart TFs, lower-TF data is sampled and would produce invalid markers — these are now suppressed instead of displayed.
New warning badge. When enabled timeframes are hidden by the guard, a small notice appears in the bottom-right corner (can be turned off in Display settings).
Reminder: for full functionality, use the indicator on chart timeframes at or below 15m.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.