Foyda Pro
- Experts
- Fazliddin Yuldoshev
- Versione: 1.0
- Attivazioni: 15
FOYDA PRO EA — MQL Market Description
This is an automated Expert Advisor (EA). Unlike a human trader, it operates without emotion, fatigue, or hesitation, executing rules mechanically and exactly as coded.
Overview
The Foyda Pro EA is a rules-based breakout system built around the Opening Range concept. Every trading day, the first minutes after the New York session open (09:30 ET) tend to establish a directional bias. This EA captures that bias systematically by waiting for confirmation before placing a trade.
It measures the range. It waits for confirmation. It executes once — and manages the trade through to close.
How It Works
Range Formation
At the New York open, the EA begins tracking price. For a configurable window of 5, 15, 30, 45, or 60 minutes, it records the session high and the session low. This becomes the Opening Range.
Breakout Confirmation
Once the range is locked, the EA monitors for consecutive candle closes outside the range boundaries. A configurable number of consecutive closes above the high triggers a long. The same number of closes below the low triggers a short. This filter reduces sensitivity to false breakouts.
Trade Execution
One trade is placed per day, in one direction. Entry is at the range boundary. Stop loss and take profit are calculated automatically based on the method selected by the user.
End of Day Close
Any open position is closed at a configurable time at the end of the trading day, keeping overnight exposure controlled.
Risk Management
The EA offers three stop loss methods and three take profit methods.
Stop Loss Options:
- ATR Multiplier — stop is placed at a multiple of ATR(14), adapting to current market volatilit
Take Profit Options:
- Risk/Reward Ratio — take profit is set at a fixed multiple of the risk distance
Before every trade, the EA runs a margin check. If free margin is insufficient for the requested lot size, the trade is skipped and the reason is printed to the log.
Chart Visualization
Every trade leaves a permanent visual record on the chart. A green rectangle marks the profit target zone. A red rectangle marks the stop loss zone. A dashed gray line marks the entry level. These objects remain visible across sessions, providing a clear view of every setup taken by the EA.
Input Parameters
Opening Range
| Parameter | Description |
|---|---|
| OR_Duration | Opening Range window in minutes: 5, 15, 30, 45, or 60 |
| BreakoutCandles | Number of consecutive closes outside the range required before entry |
Position Sizing
| Parameter | Description |
|---|---|
| InpLotSize | Fixed lot size applied to every trade |
Risk
| Parameter | Description |
|---|---|
| SL_Type | Stop loss calculation method |
| TP_Type | Take profit calculation method |
End of Day
| Parameter | Description |
|---|---|
| EOD_Hour | Hour at which open positions are closed (broker time) |
| EOD_Minute | Minute at which the end-of-day close triggers |
Transparency and Limitations
This EA places a maximum of one trade per day. It does not use grid logic, martingale, or position averaging. All risk is defined at the moment of entry through a hard stop loss.
Performance depends on market conditions, broker execution quality, spread, and the parameters configured by the user. The Opening Range approach tends to perform better during trending, directional sessions and may be less effective during low-volatility or choppy market conditions.
This EA is a structured tool for applying a defined strategy consistently. Results will vary depending on the instrument, timeframe, and market environment used during operation.
Compatible with MetaTrader 5. Requires standard market execution and access to New York session price data.
