Development of Rule-Based Forex EA (Session-Based, No Grid/Martingale)

Specification

PrimeFlowEA — v1 Specification

Objective:
PrimeFlowEA v1 is designed to enforce disciplined, rule-based execution within a single daily trading session.
The goal of v1 is correct behavior and execution discipline, not optimization or performance tuning.


1. Market & Time

  • Platform: MetaTrader 5 (MQL5)

  • Symbol(s): User-selectable (single symbol per chart)

  • Execution timeframe: Configurable (default: M5 / M15)

  • Higher-timeframe (HTF) bias timeframe: Configurable (e.g., H1 / H4)


2. Session Rules

  • One trading session per day

  • Session start and end time are user-defined

  • Trading is disabled outside the session window

  • At session start:

    • HTF directional bias is determined and fixed for the entire session

    • No mid-session bias recalculation or flipping


3. Entry Logic

  • Trades are executed only at predefined price levels

  • No signal stacking or continuous signal generation

  • One initial trade per session maximum

  • If the initial trade hits Stop Loss:

    • One re-entry is allowed (same direction, same logic)

  • No additional trades after re-entry


4. Risk & Trade Management

  • Fixed risk per trade (percentage of account balance)

  • Fixed Stop Loss and Take Profit logic (configurable)

  • No martingale, grid, or trade scaling

  • Maximum trades per session: 2 (initial + one re-entry)


5. Session Termination Logic

The trading session is terminated immediately after any of the following:

  • Take Profit is hit

  • Initial loss + re-entry is completed

  • Session end time is reached

Once terminated, no further trades are allowed until the next session.


6. Safety & Constraints

  • No trading outside session hours

  • No more than one active position at any time

  • No trade stacking

  • All rules must be strictly enforced programmatically


7. Testing & Scope

  • EA must be forward-test ready

  • No optimization, curve-fitting, or performance tuning required in v1

  • Focus is strictly on rule correctness and execution integrity


End of v1 Specification


Responded

1
Developer 1
Rating
(19)
Projects
24
8%
Arbitration
9
33% / 33%
Overdue
1
4%
Loaded
2
Developer 2
Rating
(510)
Projects
977
74%
Arbitration
27
19% / 67%
Overdue
100
10%
Free
Published: 1 article, 6 codes
3
Developer 3
Rating
(8)
Projects
9
11%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
5
Developer 5
Rating
(634)
Projects
1003
47%
Arbitration
33
36% / 36%
Overdue
98
10%
Loaded
Published: 6 codes
6
Developer 6
Rating
(22)
Projects
29
3%
Arbitration
4
25% / 0%
Overdue
3
10%
Working
7
Developer 7
Rating
(2671)
Projects
3405
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
8
Developer 8
Rating
(28)
Projects
39
23%
Arbitration
14
0% / 93%
Overdue
4
10%
Free
9
Developer 9
Rating
(21)
Projects
28
32%
Arbitration
4
50% / 25%
Overdue
4
14%
Working
10
Developer 10
Rating
(19)
Projects
27
0%
Arbitration
5
0% / 80%
Overdue
5
19%
Working
11
Developer 11
Rating
(2)
Projects
7
0%
Arbitration
3
0% / 33%
Overdue
1
14%
Working
12
Developer 12
Rating
(5)
Projects
8
13%
Arbitration
3
0% / 33%
Overdue
2
25%
Free
Published: 1 code
13
Developer 13
Rating
(317)
Projects
564
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Working
14
Developer 14
Rating
(3)
Projects
4
0%
Arbitration
1
0% / 0%
Overdue
0
Free
15
Developer 15
Rating
(62)
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
16
Developer 16
Rating
(604)
Projects
698
33%
Arbitration
43
47% / 44%
Overdue
12
2%
Busy
17
Developer 17
Rating
(365)
Projects
439
54%
Arbitration
22
50% / 14%
Overdue
30
7%
Loaded
18
Developer 18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
(4)
Projects
10
50%
Arbitration
1
0% / 100%
Overdue
2
20%
Free
20
Developer 20
Rating
(6)
Projects
5
0%
Arbitration
4
25% / 75%
Overdue
2
40%
Working
21
Developer 21
Rating
(4)
Projects
8
0%
Arbitration
3
33% / 67%
Overdue
4
50%
Free
22
Developer 22
Rating
(27)
Projects
33
36%
Arbitration
0
Overdue
2
6%
Free
23
Developer 23
Rating
(1)
Projects
1
100%
Arbitration
0
Overdue
0
Free
24
Developer 24
Rating
(14)
Projects
15
40%
Arbitration
2
50% / 50%
Overdue
1
7%
Free
25
Developer 25
Rating
(31)
Projects
33
42%
Arbitration
0
Overdue
3
9%
Free
26
Developer 26
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
27
Developer 27
Rating
(3)
Projects
5
20%
Arbitration
1
100% / 0%
Overdue
2
40%
Free
28
Developer 28
Rating
(7)
Projects
5
0%
Arbitration
5
0% / 80%
Overdue
1
20%
Working
29
Developer 29
Rating
(73)
Projects
257
53%
Arbitration
16
50% / 38%
Overdue
83
32%
Free
30
Developer 30
Rating
(8)
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
31
Developer 31
Rating
(589)
Projects
1069
50%
Arbitration
39
28% / 41%
Overdue
49
5%
Working
Published: 1 article, 8 codes
32
Developer 32
Rating
(3)
Projects
2
0%
Arbitration
1
0% / 100%
Overdue
0
Free
33
Developer 33
Rating
(14)
Projects
27
41%
Arbitration
3
0% / 67%
Overdue
6
22%
Working
34
Developer 34
Rating
(298)
Projects
477
40%
Arbitration
106
40% / 24%
Overdue
81
17%
Loaded
Published: 2 codes
35
Developer 35
Rating
(20)
Projects
28
29%
Arbitration
2
0% / 50%
Overdue
1
4%
Free
36
Developer 36
Rating
(3)
Projects
3
100%
Arbitration
0
Overdue
0
Working
37
Developer 37
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
38
Developer 38
Rating
(42)
Projects
47
60%
Arbitration
2
100% / 0%
Overdue
1
2%
Free
Published: 5 codes
39
Developer 39
Rating
(145)
Projects
169
50%
Arbitration
22
14% / 55%
Overdue
22
13%
Free
40
Developer 40
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
41
Developer 41
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
42
Developer 42
Rating
(10)
Projects
14
43%
Arbitration
0
Overdue
3
21%
Free
43
Developer 43
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
44
Developer 44
Rating
(24)
Projects
29
38%
Arbitration
2
0% / 0%
Overdue
2
7%
Free
45
Developer 45
Rating
(64)
Projects
144
46%
Arbitration
20
40% / 20%
Overdue
32
22%
Free
46
Developer 46
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
47
Developer 47
Rating
(131)
Projects
171
39%
Arbitration
10
40% / 10%
Overdue
31
18%
Loaded
48
Developer 48
Rating
Projects
2
0%
Arbitration
0
Overdue
1
50%
Free
49
Developer 49
Rating
Projects
0
0%
Arbitration
1
0% / 0%
Overdue
0
Working
Published: 2 codes
50
Developer 50
Rating
(9)
Projects
22
9%
Arbitration
3
0% / 67%
Overdue
3
14%
Working
51
Developer 51
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
52
Developer 52
Rating
(5)
Projects
5
60%
Arbitration
1
0% / 0%
Overdue
2
40%
Free
Published: 1 code
53
Developer 53
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Part 1: Project setup Input settings (risk, stop loss, take profit, EMA periods) Indicator initialization Trade management framework Part 2: Trading logic EMA crossover detection Buy/Sell entry rules One-trade-per-symbol check Part 3: Risk management Automatic lot size calculation Stop-loss and take-profit placement Trade execution and error handling Part 4: Final touches On-screen information Optimization
I am looking for an experienced MQL4 or MQL5 developer to build a high-frequency (HFT) latency arbitrage Expert Advisor for cryptocurrency trading between LMAX and IC Markets. I need someone who understands low-latency execution, price feeds, slippage, spreads, and fast order execution. The basic idea is that LMAX acts as the leading price feed while IC Markets is the execution broker. The EA should constantly
Can you Build a custom NinjaTrader 8 ChartStyle or BarsType called Optimized Footprint Bars. This project is urgent and i need someone that's wiiling to do his project with me kinldy bid for this. Thanks
A ATR GRID EA WITH DOLLAR COST AVERAGE MARTINAGLE 1.2 IT TAKE TRADES WHEN ATR VALUE IS LOWER THEN 1.3 ON 1 MINUTE TIMEFRAME SPCALLY AND CUT ALL TRADES WHEN ATR GOES ABOVE 1.3 value on 1 minute timeframe only trading when market consolidate with basket booking profit management with auto timemanagement with close if trades open after the session timeout and agaib start when our time to trade is on
A ATR GRID EA WITH DOLLAR COST AVERAGE MARTINAGLE 1.2 IT TAKE TRADES WHEN ATR VALUE IS LOWER THEN 1.3 ON 1 MINUTE TIMEFRAME SPCALLY AND CUT ALL TRADES WHEN ATR GOES ABOVE 1.3 value on 1 minute timeframe only trading when market consolidate with basket booking profit management with auto timemanagement with close if trades open after the session timeout and agaib start when our time to trade is on
Institutional‑Grade Multi‑Currency MT5 EA (A2SR + SMC + Smart Recovery + Smart Grid + Liquidity + Volatility + Safety Filters) Budget: AUD $1,500 – $2,000 (flexible) 1. EA Architecture EA runs one chart per symbol (NOT one EA controlling all symbols). Each chart instance manages its own: Recovery Grid Trend Volatility Liquidity Risk Logging EA must still respect global safety rules : Correlation protection Total
I am looking for an expert MQL5 developer to build a robust, professional Expert Advisor for Gold (XAUUSD). The EA must be Event-Driven (OnTick) with no 'Sleep' functions, ensuring instant execution. ​Core Logic: ​Grid Strategy: Start with 0.02 Buy/Sell. Lot size sequence: 0.02, 0.03, 0.05, 0.09, 0.14, 0.26, 0.44, 0.75, 1.28, 2.18 (Max 10 steps). ​Dynamic TP: Total basket TP must update instantly upon new order
We are seeking talented Graphic Designers capable of transforming concepts into visually striking representations. Whether your expertise lies in branding, marketing materials, or digital graphics, we welcome your application. Our criteria include: - Creativity and originality - Effective communication skills - Prompt delivery of work - A comprehensive and professional portfolio We invite you to submit your portfolio
┌─────────────┐ │ SMC ROBOT │ │ v2.0 │ └─────────────┘ [ANTENNA] │ ╔════════╧════════╗ ║ HEAD UNIT ║ ║ ┌───────────┐ ║ ║ │ ◉ ◉ │ ║ ← Optical Sensors ║ └───────────┘ ║ ╚════════╤════════╝ │ ╔════════╧════════╗ ║ TORSO ║ ║ ┌───────────┐ ║ ║ │ SMC CORE │ ║ ← Processing Unit ║ │ ARM V9 │ ║ ║ └───────────┘ ║ ║ [||||||||||] ║ ← Power Indicator ╚═══╤═══════╤════╝ │ │ ┌───┘ └───┐
I already have the source code of an MT5 Expert Advisor. The EA is about 70% complete. I need someone to modify and complete it. Requirements: • Manage EURUSD only. • Manage manual trades only (Magic Number = 0). • Support unlimited manual positions simultaneously. • Automatically add a 10-pip Stop Loss if a position has no Stop Loss. • Automatically add a 10-pip Take Profit if a position has no Take Profit. • Do not

Project information

Budget
500+ USD