AI Trend BuySell Signals
- Indicatori
-
Yaroslav Sukov
Кандидат физ-мат наук.
Программист.
Доцент кафедры теории вероятностей и мат. статистики.
Директор Учебно-научного полигона.
Учредитель Агентства путешествий Путевка.Ру
Учредитель студии звукозаписи FireStudio.
Учредитель загородного семейного клуба.
Директор базы отдыха. - Versione: 2.10
- Attivazioni: 5
Version 2.00 • Multi-timeframe extension of the original indicator
A professional trend indicator with arrow signals, sideways market filter, candle-close confirmation, ATR-based SL/TP, multi-channel notifications, and a multi-timeframe (MTF) mode.
What's New in v2.00 (MTF)
Feature | Description |
|---|---|
| 🆕 Multi-Timeframe mode | Analyze trend and reversals on a higher timeframe, display on current |
| 🆕 Binary-search alignment | Efficient O(log n) algorithm mapping higher TF bars to lower TF bars |
| 🆕 Unified architecture | Single codebase handles both MTF and non-MTF modes |
| 🆕 Adaptive info panel | Displays MTF status and analyzed TF |
| 🆕 MTF-specific notifications | Notification messages include the analyzed TF |
Features
- Trend direction & reversal detection — based on Supertrend (ATR multiplier)
- Multi-Timeframe (MTF) mode — analyze trend on H1/H4/D1 while trading on M5/M15/H1
- EMA filter — confirms trend direction via EMA(50)
- Buy/Sell arrows — green up-arrow (Buy), red down-arrow (Sell)
- Sideways market filter — dual check: ADX below threshold OR low Bollinger Bandwidth
- Candle-close confirmation — signals generated only on closed candles (no repaint)
- ATR-based SL/TP — calculated automatically and drawn on the chart
- Multi-channel notifications — Alert (popup), Push (mobile app), Email, Sound
- Info panel — real-time market state, trend direction, MTF status, ADX/ATR/EMA/BB metrics
How MTF Mode Works
Principle
In MTF mode the indicator:
- Creates handles (iATR, iADX, iBands, iMA) on the higher timeframe (e.g., H1)
- Copies data from the higher TF (time, high, low, close + ATR, ADX, BB, EMA)
- Computes Supertrend on the higher TF array
- Maps Supertrend values to current (lower) chart bars via time alignment
- Generates arrows on the lower TF at the moment a higher TF reversal becomes visible
Time alignment (binary search)
For each lower TF bar with time t_lower , we find the largest higher TF index i such that htf_time[i] <= t_lower . This means: that higher TF bar has closed by the time t_lower arrives.
Complexity: O(log n) per bar — high performance even on large histories.
Example: trading on M5 with H1 analysis
- InpUseMTF = true
- InpMTFTimeframe = PERIOD_H1
- Chart: M5
The Supertrend line on the M5 chart will be step-shaped — it changes only when an H1 bar closes. Arrows appear on the first M5 bar that "sees" an H1 reversal.
