Market Multi-Timeframe Pattern Detection & Alert System — Development Brief

Python Danışmanlık Python

Şartname

1. Project Overview

I would like to develop a market-monitoring and notification system that automatically analyses historical price action on a higher timeframe, identifies a specific price level according to a predefined rule, and then monitors a corresponding lower timeframe for a confirmation/breakout condition.

The system should allow multiple timeframe combinations and multiple financial instruments to be monitored simultaneously.

The initial pattern logic is based on identifying a bullish candle that is immediately followed by a bearish candle, selecting the qualifying bullish candle with the highest closing price, and then monitoring the corresponding lower timeframe for a bullish close above that level.

The system should automatically:

  1. Obtain historical OHLC data.

  2. Analyse the previous completed candle/day/week/month/year on the selected higher timeframe.

  3. Identify the qualifying bullish → bearish pattern.

  4. Determine the relevant resistance level.

  5. Switch to the corresponding lower monitoring timeframe.

  6. Monitor the current price action on that lower timeframe.

  7. Detect when the defined breakout/confirmation condition occurs.

  8. Send a notification via mobile and/or email.

  9. Record the setup and alert in the dashboard/history.

The initial objective is a functional MVP, preferably using free or very low-cost data sources and infrastructure where possible.


2. Multi-Timeframe Architecture

A key requirement is that the system must support a higher timeframe (HTF) for identifying the setup and a corresponding lower timeframe (LTF) for monitoring the confirmation/breakout.

The timeframe relationship should initially be:

Higher Timeframe Monitoring Timeframe
Yearly Monthly
Monthly Daily
Weekly H4
Daily H1
H1 M5

Therefore:

Yearly → Monthly

Monthly → Daily

Weekly → H4

Daily → H1

H1 → M5

The purpose is to use the higher timeframe to establish the important price level and then use the lower timeframe to identify a more precise confirmation/breakout.


3. Higher-Timeframe Setup Identification

The system should analyse the previous completed period on the selected higher timeframe.

For example:

If HTF = Daily

Analyse the previous trading day's H1 candles to establish the setup.

If HTF = H1

Analyse the previous H1 candle's M5 price action.

If HTF = Weekly

Analyse the previous week's H4 candles.

If HTF = Monthly

Analyse the previous month's Daily candles.

If HTF = Yearly

Analyse the previous year's Monthly candles.

The exact implementation should preserve the same underlying pattern logic across these timeframe combinations.

In other words, the system should use the higher timeframe as the reference period and the associated lower timeframe to analyse the price action contained within that reference period.


4. Core Pattern Logic

Within the relevant higher-timeframe period, the system must analyse the corresponding lower-timeframe candles.

A bullish candle is defined as:

Close > Open

A bearish candle is defined as:

Close < Open

The system must identify every instance where:

A bullish lower-timeframe candle is immediately followed by a bearish lower-timeframe candle.

For example, for a Daily → H1 setup:

PREVIOUS DAY — H1 09:00 Bullish 10:00 Bearish ← qualifying pair 11:00 Bullish 12:00 Bullish ← does not qualify 13:00 Bullish 14:00 Bearish ← qualifying pair

The same principle applies to all timeframe combinations.


5. Selecting the Relevant Bullish Candle

After identifying all qualifying bullish → bearish pairs within the relevant higher-timeframe period, the system must compare the closing prices of the qualifying bullish candles.

The system must select:

The qualifying bullish candle with the highest closing price.

The system should NOT select based on:

  • Highest wick/high;

  • Largest candle body;

  • Largest percentage move;

  • Most recent qualifying candle.

It must specifically select the qualifying bullish candle with the highest closing price.


6. Resistance Level

The closing price of the selected bullish candle becomes the resistance level for the subsequent monitoring period.

For example:

Daily HTF

Previous day contains several H1 bullish → bearish pairs.

The highest qualifying bullish H1 candle closes at:

24,150

Therefore:

24,150 becomes the resistance level for today's monitoring.

The system then monitors the corresponding lower timeframe according to the configured timeframe relationship.


7. Lower-Timeframe Monitoring

Once the resistance level has been established, the system monitors the corresponding lower timeframe.

The monitoring timeframe depends on the selected higher timeframe:

Setup Timeframe Confirmation Timeframe
Yearly Monthly
Monthly Daily
Weekly H4
Daily H1
H1 M5

The system waits for a bullish candle on the monitoring timeframe to close above the resistance level.

The breakout condition is:

Monitoring candle Close > Monitoring candle Open

AND

Monitoring candle Close > Resistance Level

If both conditions are satisfied:

TRIGGER ALERT.


8. Example — Daily → H1

Suppose the selected higher timeframe is Daily.

The system analyses the previous trading day's H1 candles.

It finds:

09:00 Bullish → 10:00 Bearish
13:00 Bullish → 14:00 Bearish
15:00 Bullish → 16:00 Bearish

The qualifying bullish candle closing prices are:

24,050 24,100 24,150

Therefore:

Resistance = 24,150

The system then monitors today's H1 candles.

09:00 H1
Open: 24,100
Close: 24,120
→ Bullish but below resistance
→ No alert

10:00 H1
Open: 24,120
Close: 24,140
→ Bullish but below resistance
→ No alert

11:00 H1
Open: 24,140
Close: 24,185
→ Bullish
→ Close above 24,150
→ ALERT

9. Example — Weekly → H4

If the selected higher timeframe is Weekly:

  1. Take the previous completed trading week.

  2. Analyse its H4 candles.

  3. Identify bullish H4 candles immediately followed by bearish H4 candles.

  4. Find the qualifying bullish H4 candle with the highest closing price.

  5. Use that closing price as the resistance level.

  6. During the current week, monitor H4 candles.

  7. Alert when an H4 bullish candle closes above that level.


10. Example — Monthly → Daily

If the selected higher timeframe is Monthly:

  1. Take the previous completed month.

  2. Analyse its Daily candles.

  3. Identify bullish Daily candles immediately followed by bearish Daily candles.

  4. Find the qualifying bullish Daily candle with the highest closing price.

  5. Use that closing price as the resistance level.

  6. During the current month, monitor Daily candles.

  7. Alert when a Daily bullish candle closes above that level.


11. Example — Yearly → Monthly

If the selected higher timeframe is Yearly:

  1. Take the previous completed year.

  2. Analyse its Monthly candles.

  3. Identify bullish Monthly candles immediately followed by bearish Monthly candles.

  4. Find the qualifying bullish Monthly candle with the highest closing price.

  5. Use that closing price as the resistance level.

  6. During the current year, monitor Monthly candles.

  7. Alert when a Monthly bullish candle closes above that level.


12. Timeframe Configuration

The timeframe relationships should ideally be configurable rather than hard-coded.

The initial default mapping should be:

Yearly → Monthly Monthly → Daily Weekly → H4 Daily → H1 H1 → M5

I would like the architecture to allow additional timeframe relationships to be added later.


13. Multiple Instruments + Multiple Timeframes

The system should be capable of monitoring multiple instruments and multiple timeframe combinations simultaneously.

For example:

Instrument HTF Monitoring TF Status
NAS100 Daily H1 Watching
XAUUSD Daily H1 Triggered
EURUSD H1 M5 Watching
BTCUSD Weekly H4 Watching
US30 Monthly Daily Watching

Each instrument/timeframe combination should operate independently.


14. Dashboard

The remotely accessible dashboard should display the active setups.

Ideally:

Instrument HTF Monitor TF Resistance Status
NAS100 Daily H1 24,150 🟢 Watching
XAUUSD Daily H1 3,742 🔴 Triggered
BTCUSD Weekly H4 112,500 🟢 Watching

The dashboard should ideally allow me to:

  • Add/remove instruments;

  • Select the higher timeframe;

  • See the automatically selected monitoring timeframe;

  • View the resistance level;

  • See the qualifying source candle;

  • See when the setup was created;

  • See whether the alert has triggered;

  • View previous alerts;

  • Enable/disable alerts.


15. Remote Access

The dashboard should preferably be cloud-hosted and accessible remotely via a web browser.

I do not want the system to depend on my personal computer being switched on.

Ideally:

  • Accessible from desktop;

  • Accessible from mobile browser;

  • Secure login;

  • Data stored remotely;

  • Monitoring continues 24/7 without my computer being online;

  • Dashboard updates automatically;

  • Mobile-friendly interface;

  • Potentially installable as a PWA/home-screen web app in the future.


16. Alert Logic

The alert should only trigger when the monitoring-timeframe candle has fully closed.

It should NOT trigger merely because price trades above the resistance intrabar.

For example:

Resistance = 108.

Monitoring candle:

  • Open = 105

  • High = 110

  • Close = 107

No alert.

Even though price traded above 108, the candle closed below the resistance.

Instead:

  • Open = 105

  • High = 110

  • Close = 109

Alert.

Because:

Close > Open

and

Close > Resistance


17. Duplicate Alerts

By default, there should be one initial breakout alert per instrument/timeframe setup.

Once the setup has triggered:

Resistance = 108

Candle 1 closes 109 → ALERT
Candle 2 closes 111 → No second alert
Candle 3 closes 115 → No second alert

This should ideally be configurable in the future.


18. Alert Message

A notification should contain enough information to understand the setup without opening the dashboard.

For example:

H1 BREAKOUT ALERT — NAS100

HTF: Daily
Monitoring TF: H1
Previous-day resistance: 24,150
Breakout candle: 11:00 H1
Open: 24,140
Close: 24,185
Status: Bullish close above resistance

For a different timeframe:

H4 BREAKOUT ALERT — BTCUSD

HTF: Weekly
Monitoring TF: H4
Previous-week resistance: 112,500
Breakout candle: 12:00 H4
Close: 113,100


19. Future Expansion

The architecture should ideally allow additional pattern rules to be added later.

For example:

  • Bearish equivalent of the current setup;

  • Support identification;

  • Previous-day high/low;

  • Previous-week high/low;

  • Daily pivots;

  • Asia session levels;

  • London session levels;

  • Multiple candle patterns;

  • Different confirmation conditions;

  • Additional timeframe combinations;

  • Multiple rules running simultaneously.

The current bullish → bearish → highest qualifying close → lower-timeframe bullish breakout rule should therefore be treated as Rule #1.

The ultimate objective is to create a general market-condition alert engine rather than a single-purpose indicator.


20. Core Logic — Developer Summary

The system should operate according to the following general framework:

Step 1 — Select HTF

User selects:

  • Yearly

  • Monthly

  • Weekly

  • Daily

  • H1

Step 2 — Automatically select monitoring timeframe

Yearly → Monthly Monthly → Daily Weekly → H4 Daily → H1 H1 → M5

Step 3 — Analyse the previous completed HTF period

Within that period, analyse the associated lower timeframe candles.

Step 4 — Identify qualifying candle pairs

Find every:

Bullish candle ( C > O )

immediately followed by:

Bearish candle ( C < O )

Step 5 — Select the highest closing bullish candle

Compare the Close of every qualifying bullish candle.

Select the one with the highest Close.

Step 6 — Establish resistance

The selected bullish candle's Close = Resistance Level.

Step 7 — Monitor the current period

Watch the corresponding lower timeframe.

Step 8 — Detect confirmation

Trigger when:

Current monitoring candle Close > Current monitoring candle Open

AND

Current monitoring candle Close > Resistance

Step 9 — Notify

Send mobile/email notification.

Step 10 — Record

Store the setup and alert in the database/dashboard for future analysis.


21. MVP Requirement

For the MVP, I would like the developer to focus on getting the following working reliably:

Multiple instruments + multiple HTF/LTF combinations + automatic previous-period analysis + resistance identification + lower-timeframe breakout detection + notification + remotely accessible dashboard.

The initial timeframe mapping is:

Yearly → Monthly

Monthly → Daily

Weekly → H4

Daily → H1

H1 → M5

The system should be designed so that additional rules, instruments and timeframe combinations can be added later without having to rebuild the entire application.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(623)
Projeler
730
34%
Arabuluculuk
48
52% / 40%
Süresi dolmuş
14
2%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(111)
Projeler
183
25%
Arabuluculuk
25
16% / 76%
Süresi dolmuş
16
9%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(17)
Projeler
21
19%
Arabuluculuk
5
40% / 40%
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(22)
Projeler
28
7%
Arabuluculuk
9
33% / 33%
Süresi dolmuş
1
4%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(319)
Projeler
571
35%
Arabuluculuk
84
31% / 44%
Süresi dolmuş
206
36%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(3)
Projeler
3
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(401)
Projeler
519
24%
Arabuluculuk
61
57% / 25%
Süresi dolmuş
60
12%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(7)
Projeler
6
0%
Arabuluculuk
4
25% / 75%
Süresi dolmuş
2
33%
Serbest
9
Geliştirici 9
Derecelendirme
(22)
Projeler
29
3%
Arabuluculuk
4
25% / 0%
Süresi dolmuş
3
10%
Serbest
10
Geliştirici 10
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
(64)
Projeler
144
46%
Arabuluculuk
21
38% / 24%
Süresi dolmuş
32
22%
Serbest
12
Geliştirici 12
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
13
Geliştirici 13
Derecelendirme
(21)
Projeler
29
41%
Arabuluculuk
8
25% / 38%
Süresi dolmuş
2
7%
Meşgul
Yayınlandı: 8 makale, 35 kod
14
Geliştirici 14
Derecelendirme
(19)
Projeler
22
18%
Arabuluculuk
9
33% / 44%
Süresi dolmuş
3
14%
Çalışıyor
Yayınlandı: 1 kod
15
Geliştirici 15
Derecelendirme
(465)
Projeler
815
49%
Arabuluculuk
75
21% / 51%
Süresi dolmuş
142
17%
Serbest
16
Geliştirici 16
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 2 kod
17
Geliştirici 17
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
18
Geliştirici 18
Derecelendirme
(60)
Projeler
94
43%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
4
4%
Serbest
19
Geliştirici 19
Derecelendirme
(29)
Projeler
36
44%
Arabuluculuk
4
50% / 50%
Süresi dolmuş
3
8%
Çalışıyor
20
Geliştirici 20
Derecelendirme
(20)
Projeler
29
3%
Arabuluculuk
4
0% / 100%
Süresi dolmuş
5
17%
Serbest
21
Geliştirici 21
Derecelendirme
(13)
Projeler
22
41%
Arabuluculuk
8
0% / 50%
Süresi dolmuş
3
14%
Çalışıyor
22
Geliştirici 22
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Serbest
23
Geliştirici 23
Derecelendirme
(74)
Projeler
96
57%
Arabuluculuk
5
80% / 20%
Süresi dolmuş
3
3%
Yüklendi
24
Geliştirici 24
Derecelendirme
(16)
Projeler
30
40%
Arabuluculuk
3
33% / 67%
Süresi dolmuş
7
23%
Çalışıyor
25
Geliştirici 25
Derecelendirme
(2348)
Projeler
2954
63%
Arabuluculuk
125
44% / 26%
Süresi dolmuş
429
15%
Çalışıyor
26
Geliştirici 26
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
27
Geliştirici 27
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 4 kod
28
Geliştirici 28
Derecelendirme
(3)
Projeler
9
67%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
29
Geliştirici 29
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
30
Geliştirici 30
Derecelendirme
(13)
Projeler
14
64%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
31
Geliştirici 31
Derecelendirme
(183)
Projeler
197
46%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
1
1%
Çalışıyor
32
Geliştirici 32
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
1
50%
Serbest
33
Geliştirici 33
Derecelendirme
(20)
Projeler
26
38%
Arabuluculuk
6
33% / 50%
Süresi dolmuş
0
Serbest
34
Geliştirici 34
Derecelendirme
(369)
Projeler
457
55%
Arabuluculuk
24
54% / 17%
Süresi dolmuş
31
7%
Çalışıyor
35
Geliştirici 35
Derecelendirme
(211)
Projeler
274
21%
Arabuluculuk
25
52% / 16%
Süresi dolmuş
0
Yüklendi
36
Geliştirici 36
Derecelendirme
(2676)
Projeler
3416
68%
Arabuluculuk
77
48% / 14%
Süresi dolmuş
343
10%
Serbest
Yayınlandı: 1 kod
37
Geliştirici 37
Derecelendirme
(15)
Projeler
15
33%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
7%
Serbest
38
Geliştirici 38
Derecelendirme
(55)
Projeler
92
24%
Arabuluculuk
8
75% / 13%
Süresi dolmuş
44
48%
Serbest
39
Geliştirici 39
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
40
Geliştirici 40
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
41
Geliştirici 41
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
42
Geliştirici 42
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 4 kod
43
Geliştirici 43
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Benzer siparişler
I need a professional XAUUSD signal indicator for MetaTrader 5, written entirely in MQL5 (.mq5). IMPORTANT: This is NOT an auto-trading EA. It must never open, close or modify trades. It only analyzes XAUUSD and generates signals + MT5 push notifications. 1. Multi-timeframe analysis: H4 → H1 → M30 → M15 → M10 → M5 → M1. 2. Detect market structure: - Swing High / Swing Low - BOS - MSS - CHOCH - Bullish/Bearish HTF
i have indicator for Trading View, also copy for NT, i need someone to improve and check the NT version (indicator is simple is volume density koncept)…. when i put same settings on TV version and NT version i have diffrerent results, but this can be because diffrent market data or fact that TV sending tick info in blocks , not tick by tick like NT8 on both. I(ndicator base on counting volume) so besied that is it
I need a developer who can write me a XML file for a dbot robot to trade any deriv option instruments and trading mode A market analyser is needed. Let it automatically scan the market and choose the instrument and with the best input parameters for a given trading mode and show the predicted win rate as shown in the videos below; https://vt.tiktok.com/ ZSb14aoAA/ https://vt.tiktok.com/ ZSb1bFBkA/
Please may someone assist me with the indicator attached, it has a SERIOUS BUG issue in the sense that when I load it, and activate the template (attached as well) MT4 ALWAYS freezes and then eventually disconnects automatically, ALL THE TIME. It even gets worse to an extent that after disconnecting a number of times mt4 ends up not loading anymore, UNTIL I remove the indicator. Please I WILL NEED A DEMO (FOR A DAY)
I need a professional AI-assisted Forex trading Expert Advisor (EA) for MetaTrader 5. The EA should not be based on a simple single indicator strategy. I want a robust multi-factor trading system that can analyze market conditions, trend, momentum, volatility, price action and risk before entering a trade. Requirements: Forex trading on MT5 Automated analysis and trade execution Dynamic entry and exit decisions Stop
We are seeking an independent technical reviewer for a frozen Python evidence/specification candidate related to an XAUUSD paper-trading risk system (ALKOOS-AI). This is NOT a request to develop, modify, optimize, or execute a trading robot or trading strategy. The task is limited to independent verification of a prepared evidence package. The reviewer should verify: Integrity of the supplied frozen artifact using
Creating a bot using the Parabolic indicator with a simple interface.. I want a bot that uses the Parabolic SAR indicator only, with these orders attached to it. Boot name : HEMIN .FX Magic number : 000000 …………………………………………………. Trade behavior : regular OR inverse OR only long "buy" OR only short "sell" Timeframe : ………… Period: ……… ………………………………………………….. Lot size : ……………… Break even in points : …
Gold robot 30+ USD
Yes. This screen is asking you to write the Requirements Specification for your Gold/XAUUSD trading robot. Since you want your DEEPTHINK X10 institutional-style MT5 system , use this ready-to-paste specification: DEEPTHINK X10 GOLD ROBOT – MT5 EXPERT ADVISOR REQUIREMENTS Develop an advanced MetaTrader 5 Expert Advisor (EA) for XAUUSD (Gold) scalping based on a multi-factor DEEPTHINK X10 trading framework. 1. MARKET -
I need a custom MQL5 indicator for MetaTrader 5. The indicator must automatically print entry, stop loss, and take profit zones on the chart using dots. A critical requirement is that these dots must be non-lagging and absolutely non-repainting. Additionally, the indicator needs to identify and display current supply and demand zones. Please provide the mq5 source code and the ex5 file upon completion
Expert Advisors 300+ USD
double CRiskManager::CalculateLotSize(double slPoints) { double balance = AccountInfoDouble(ACCOUNT_BALANCE); double riskMoney = balance * (m_riskPercent / 100.0); double tickValue = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_VALUE); double tickSize = SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE); double pointValue = tickValue / tickSize; double lot = riskMoney / (slPoints * pointValue);

Proje bilgisi

Bütçe
30 - 150 USD

Müşteri

(24)
Verilmiş siparişler42
Arabuluculuk sayısı0