Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
Session Breaks & FVG EA
The Strategy:
Developing a Session Breaks and FVG EA for MT5 involves creating an automated trading strategy that can trade based on specific rules related to session breaks and fair value gap FVG.
Session Marking Time & High and Low:
I want EA mark on chart 4 times sessions and High and Low for each session
Time Zone (Broker time zone)
Range Type (Wick to Wick)
Session 1 (02:00 – 07:00)
Session 2 (07:00 – 15:00)
Session 3 (15:00 – 20:00)
Session 4 (20:00 – 02:00)
- Able to input start hour and minute for each session.
- Able to input finish hour and minute for each session.
Fair Value Gap FVG:
EA can Identify Bullish FVG and Bearish FVG
Entry Conditions
1st condition must meet then look for 2nd condition.
1st condition is the price in current session must Break Previous Session High or Low
If its break previous session High look for Sell only
If its break previous session Low look for Buy only
2nd condition is after break of previous session look for FVG to form.
If Previous Session Low was broken Look for Bullish FVG only to set buy limit order.
If Previous Session High was broken Look for Bearish FVG only to set sell limit order.
Limit order will at box edge of FVG price
If second FVG formed set limit order also
- Input how many max pending limits order can place: 1, 2 ,3 etc
- Input how many max positions can open: 1, 2, 3 etc
If current session ended any pending order for current session must be deleted.
- Option: When starting next session delete all pending (True/False)
If False input to keep pending limit order for how many minutes extra when new session start: 1 = 1 minutes.
Opened position must be kept until hit tp or sl.
Stop Loss calculation setting
Option 1: at current session High for sell / current session Low for buy.
- Input to add additional pips for stop loss above/below stop loss
Option 2: Fixed stop loss in pips
Take Profit calculation setting
Option 1: RR ratio size of Stop Loss option to chose 1:1,1:2,1:3 etc multiple of stoploss size
- Input to add Reward ratio ( if 1 = 1:1), if (2 = 1:2) etc..
Option 2: Fixed Take Profit in pips
Trailing Stoploss
Need a simple trailing stoploss when position in profit.
Trailing start = in pips from entry price
Trailing size = size in pips from trailing start
Trailing step = size of trailing to move with price
Money Management
Risk percentage per stop loss size
Risk per Fixed Lot Size
Order Sending
Option to send order in which session:
Session 1 (Ture – False)
Session 2 (Ture – False)
Session 3 (Ture – False)
Session 4 (Ture – False)
Trade on / off based of Day:
Monday (true/false)
Tuesday (true/false)
Wednesday (true/false)
Thursday (true/false)
Friday (true/false)
Saturday (true/false)
Sunday (true/false)
Notes:
Can work on any timeframe (1m, 5m, 15m… etc)
Can work on any pair (forex, metals, crypto, indices... etc)
Backtest should be fast and smooth.