Trabajo finalizado
Tarea técnica
🧩 Project Requirements
🔎 Primary Features
- Show market open and close times for the symbol the indicator is attached to.
- Use an external API to retrieve trading session data.
- Possible sources include:
- Handle time zone conversions correctly (UTC ↔ local ↔ broker/server time).
- Visually display session times using a subwindow style indicator, similar to a horizontal bar or overlay panel showing “OPEN” and “CLOSED” windows clearly.
- Must also show known public holidays or close days e.g. 4th July etc for given symbol;
- Json file Config ability to track multiple symbols at same time.
🛠 Technical Features
- Written in pure MQL5, no DLLs.
- Creates a visual panel or histogram bar in a subwindow (Indicator Style 1).
- Automatically updates daily using scheduled calls (or per tick if light).
- Includes a class module (e.g., Class_MarketHours.mqh) that exposes:
datetime GetMarketOpen(string symbol);
datetime GetMarketClose(string symbol);
bool IsMarketOpen(string symbol, datetime time_check = TimeCurrent());
TimetoMarketClose()
TimeSinceMarketOpen()
Within30MinutesOfMarketCloseOrOpen()
Within30MinutesOfMarketCloseForTheWeek()
PublicHolidays()
📦 Deliverables
- MarketHours.mq5 indicator
- Class_MarketHours.mqh for programmatic use in other EAs or indicators
- MarketHoursConfig.mqh or JSON config (optional)
- Holidays
- All source code
- Sample usage EA/indicator showing how to use the class
💡 Visual & Functional Goals
- Visually show today’s open and close period as a band or block in a subwindow
- Label with market status, e.g.:
- ✅ “Open 09:30 - 16:00 (NYSE)”
- ❌ “Closed – Reopens in 3h 12m”
- Optional: display next open/close countdown
- Should auto-detect the symbol’s exchange/market or allow override
🌐 API Notes
You may suggest the best API for market hour data. You must:
- Implement proper API call logic (e.g., WebRequest)
- Handle API key securely (stored in input or config file)
- Parse and cache data for efficiency
🔐 Requirements
- Strong MQL5 + OOP skills
- Experience with HTTP API/WebRequest in MQL5
- Must know how to handle timezone conversion between server, local, and UTC
- Prior work on session/time-based indicators is a bonus
💰 Budget & Timeline
- Budget: Flexible, based on experience and API complexity
- Timeline: 7–10 days preferred
📝 How to Apply
Send:
- Brief proposal of how you'd approach API integration and timezone handling
- Relevant past work (esp. involving WebRequest or custom time/session indicators)
- Confirmation that full MQL5 source code will be provided
It may look similar to the following with added annotations on open and close and public holidays.
Indicator would be a traffic light system
Open = green line
Closed = red line
Within 30 minutes of a close before or after =
Orange Line