///// INSTRUCTIONS for the "DAILY PATTERN MODEL RESEARCH" EA /////
Platform: MT5.
Here are the instructions.
Step 1: PREVIOUS DAYS' INTRADAY ACTIVITY
We will use INTRADAY bars NOT Daily bars.
I want the EA to run and scan if the chosen "DAILY PATTERN" occured in the previous days. I will choose ONE option below and the EA must check for that one only. I want to test one option at a time to simplify. We are not scanning and searching for all patterns, just the ONE that I would select from the list below. If that one occured we will proceed to Step 2.
1. ID
2. ID/NR4
3. NR7
4. 2*-day overlap (70%*)
5. Market traded from high to low 2* or more consecutive days (value of 1 is minimum but it can be more)
6. Market traded from low to high 2* or more consecutive days (value of 1 is minimum but it can be more)
Terminology:
AD1 - ID: This is an Inside day. Inside day's high is lower than the previous day's high and Inside day's low is higher than the previous day's low.
AD2 - ID/NR4: This is an Inside day + The narrowest day of the last 4 days. The narrowest day means that the day 4 (last day out of those 4 in the sample) has the smallest trading range between its daily high and low compared to those others.
AD3 - NR7: This is the narrowest trading day out of the 7 days.
AD4 - 2*-day overlap (70%*): These are the last 2 days and their trading range (the difference between its daily high and low) overlaps at least for 70% (price overlap). I intend to test this for up to 5 days overlap, not more (in case this would slow down the code).
AD5 and AD6 - If the daily high was made first and the daily low second, the market traded from high to low that day. If the daily low was made first and the daily high was made last, the market traded from low to high that day.
So if the chosen pattern occured, proceed to Step 2.
Step 2: TODAY'S INTRADAY ACTIVITY
ENTERING TRADES:
Market established the first 60min* of trading after the Open. Let's call this the "Opening range". Opening range could be 15min, 30min, 60min or 120min time frame, no other. "Open time" needs a format such as hh:mm and it is 08:00 by default. We will also set a "Close time" which is 22:00* by default. If the market trades outside of this Opening range, the trade is entered at market in the direction of the breakout. "Stop loss" is immediately set 2* ticks beyond the other end of the Opening range.
Example: Opening range is set to 30min* and Open is at 8:00*. Once the candle closes at 8:29:59 we have the first 30 minutes of trading done and we have our Opening range. If the high is broken we enter a buy trade (stop loss is set below the Opening range), if the low is broken we enter a sell trade (stop loss is set above the Opening range high). "Size" is 1* contract by default.
However, a trade is allowed to be entered only in the "Allowed entry time after Opening range" period which is 120min* by default. So in the example above, if the Opening range is finished at 8:30, we have 120min time window that allows a trade to be entered, that is until 10:30. After that, a trade cannot be entered.
If the market doesn't break out of the Opening range, there is no entry.
IMPORTANT: Here I want the option in the settings to be enabled/disabled and it is: If the whole Opening range is WITHIN yesterday's trading range (so below yesterday's high and above yesterday's low), DO NOT take a trade. Let's call this a "Entry filter" setting.
Please use these names as presented in between " " so that I can recognise them in the settings.
EXITING TRADES:
I want to test different exits. oNE at a time.
There are some GENERAL exit rules that apply to all exit options and they are as described below. Let's call an entry day - Day 1 and a day after the entry day - Day 2, etc.
General rule no. 1: If a trade is still opened and none of the exit rules that are mentioned below were triggered, exit the trade at the Close of Day 2*.
General rule no. 2: In case a trade is still opened and there is a price Gap beyond (!) stop loss (same day or any day after the entry), exit the losing trade immediately as the price becomes available. This is for a losing trade only. Stocks will have gaps and also forex and futures will have weekend gaps.
Below are the EXIT TYPES to choose from (please include all exit names in the settings so that I will recognise them easier):
EXIT 1 "CLOSE" : Exit at the Close of Day 1. No matter if profit or loss (the stop loss wasn't yet hit obviously). Apply General rules accordingly.
EXIT 2 "RISK REWARD" : Exit in risk reward 1:2 (risk 1 reward 2*). Risk is the size of stop loss. If that size is 20 pips, cover profit at 40 pips reward. If risk reward is set to 1:3, cover at 60 pips reward. Minimum and default value is risk reward 1:1 but the setting has no limits on the reward number on the upside. This Exit style can go multiple days obviously until one of the orders is hit, either stop loss or profit target. Apply General rules accordingly.
EXIT 3 "HIGHLOW PENETRATION" : If the trade shows a loss at the Close of Day 1, exit it. If not, hold it. Then, for a long trade, once the market trades above the high of Day 1, exit the trade. For a short trade, once the market trades below the low of Day 1, exit the trade. Initial stop loss for long and short trades is still in tact of course in case it is hit. Apply General rules accordingly.
EXIT 4 "TRAILING STOP" : Exit a trade once a "Trailing stop" is hit. Trailing stop is a 2* day high/low. For longs the trailing stop is a lowest low od the last 2 days (closed days - not including current day when trailing). For shorts the trailing stop is a highest high of the last 2 days (closed days - not including current day when trailing). The trailing stop triggers on Day 2 and it cannot widen the Initial stop loss. Apply General rules accordingly.
NOTES:
All * signs shall have modifyable settings.
Similar orders
Hello, I am from Tanzania. I am looking for a professional MQL5 programmer from Tanzania who can help me develop and improve my automated MT5 trading robot. The project is called SMC XAVAGE AI, and it trades XAUUSD (Gold). I would like to discuss the project with you. Are you based in Tanzania? Would it be possible to arrange a meeting or a call? Thank you
Here is a professional specification you can send directly to your developer. # Project Requirements Specification: MetaTrader 5 Trading Robot Development ### 1. Project Overview I want to develop an automated Forex trading robot (Expert Advisor) for MetaTrader 5 (MT5). The robot should analyse the financial markets, identify trading opportunities, and execute trades automatically based on predefined strategies. ###
1. Platform: MT4 The EA required is not linked, neither depending on trading strategy nor trading signals nor indicators. 2. Initial order is a pending order (buy stop/ sell stop) and it is created manually. It is open for a specified symbol (pair) at a specified price with a specified S/L 3. Example: buy stop 0.1 lot GBPUSD @ 1.3085 WITH S/L @1.3075 Once target price is reached, pending order will
Overview: Build an MT5 Expert Advisor that receives webhook alerts from TradingView (RayAlgo indicator) across three timeframes ( H1, M5, M1 ) for XAUUSD and executes a dual-position strategy when all three conditions align, including strict FTMO server-request limits and automated pre-market-close trade closures. 1. Webhook Receiver & Multi-Timeframe State Logic: H1 Bias State: Updates to BULLISH or BEARISH upon
I am looking for an experienced trading software developer interested in building a long-term working relationship. Im a professional Trader, Coach and Mentor, I work with traders and Student who require customized trading solutions, including automated trading bots, Expert Advisors, custom indicators, trading strategies and other algorithmic trading tools. I am looking for a technically skilled developer who can
MT5 ICT XAUUSD Sell-Only Trading Robot with Fibonacci Confirmation I am looking for an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5, specifically for trading Gold (XAUUSD). 1. Trading Strategy The robot must use the ICT trading methodology and focus on SELL trades only. The strategy should include: * Identify important resistance and premium zones. * Use Fibonacci retracement
Objective: I am looking for an experienced MQL5 quantitative developer to code an Expert Advisor (EA) from scratch based on a fully defined, rule-based strategy, and then rigorously validate, optimize, and stress-test it before I deploy it on a live VPS environment. Note: The exact mathematical rules, indicator names, and chart screenshots will be shared privately with shortlisted candidates. Strategy Overview
Hi Team We are looking to commission an Expert Advisor (EA) for MetaTrader 5 (MT5) to trade XAUUSD (Gold) . The EA requires tight risk management with a strict $2.00 Stop Loss and a $3.00 to $5.00 Take Profit target. The goal is to achieve a 60%+ Win Rate . Please propose or implement a strategy algorithm capable of meeting the following performance requirements on XAUUSD tick data: Target Performance: $\ge 60\%$ Win
a trading bot that can open and close trade by its self a stop loss of 1.2 lot size and good tp it should be able to learn trends and learn from its mistakes
JOB SPECIFICATION: Fully Automated ES/MES 5-Minute NY Opening Range Breakout EA 1. Project objective I am looking for an experienced trading algo developer to build a fully automated trading bot (EA) based on my specific 5-minute New York Opening Range Breakout strategy. The EA must identify setups, confirm breakouts, identify retests, confirm continuation, execute trades, calculate position size, place stop-loss and