An auto-optimization function requires adding to an EA

Job finished

Execution time 2 days
Feedback from customer
Very quick and very efficient.

Specification

The important part of the project is the auto-optimization of the entry conditions using the System Quality Number Score as the optimization criteria.

I am not concerned about the profitability because the rule below are bogus.  The focus is on the auto-optimization.

You may use your own auto-optimization function or you can use the following link as an excellent starting point: https://www.mql5.com/en/code/19392


The auto-optimisation has to be embedded in the attached EA called Optimization_EA without altering any existing functions.  Please make code additions understandable by commenting your work.

====================================================================================================================================

AUTO OPTIMISATION ADDED TO THE FOLLOWING ENTRY CONDITIONS ONLY:


      if(TradeLong) {

         bool LongEntryCondition = (((High[3] < High[5]) && (High[19] < iMA(NULL, 0, pEMA_4, 0, MODE_EMA, PRICE_CLOSE, 1))) && (((High[19+1] > iMA(NULL, 0, pEMA_6, 0, MODE_EMA, PRICE_CLOSE, 2)) && (High[19] < iMA(NULL, 0, pEMA_6, 0, MODE_EMA, PRICE_CLOSE, 1))) && (High[11] > High[16])));

         if(LongEntryCondition == true) {openPosition(1);

            

         }

      }

   

      // SHORT: (((Low(3) > Low(5)) And (Low(19) > EMA(pEMA_4))) And ((Low(19) Crosses Above EMA(pEMA_6)) And (Low(11) < Low(16))))

      if(TradeShort) {

         bool ShortEntryCondition = (((Low[3] > Low[5]) && (Low[19] > iMA(NULL, 0, pEMA_4, 0, MODE_EMA, PRICE_CLOSE, 1))) && (((Low[19+1] < iMA(NULL, 0, pEMA_6, 0, MODE_EMA, PRICE_CLOSE, 2)) && (Low[19] > iMA(NULL, 0, pEMA_6, 0, MODE_EMA, PRICE_CLOSE, 1))) && (Low[11] < Low[16])));

         if(ShortEntryCondition == true) { openPosition(-1);

            

         }

      }


Please contact me with any questions.

Responded

1
Developer 1
Rating
(68)
Projects
111
26%
Arbitration
17
6% / 71%
Overdue
15
14%
Free
Published: 9 codes
2
Developer 2
Rating
(246)
Projects
253
30%
Arbitration
0
Overdue
3
1%
Free
Published: 2 codes
Similar orders
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
Project Overview We are seeking an experienced MetaTrader 5 (MT5) / MQL5 developer to design and build a production-ready Expert Advisor intended for live trading with capital at risk . This is not a hobby, experimental, or retail-grade EA. We are only interested in developers with proven experience delivering robust, well-tested MT5 systems . Project Objective Design and implement a high-quality MT5 Expert Advisor
I have a simple strategy that need coding on tradingview Strategy using high low at seleted time and when breakout to entry buy sell. Everything will be explained on private
The strategy is based on years of manual testing. Detailed requirements including custom indicator settings (VWAP, Kalman RSI, BrkVol etc.) will be provided. I am looking for a high-level MQL5 developer to build a robust Expert Advisor (EA) based on a proven strategy using 11 specific indicators. The system is designed for high-precision entries by filtering market noise and spikes. Key Requirements: •
Stormbreaker 30 - 100 USD
✅ *Step-by-Step Strategy to Code – CRT + CISD (MT5 EA)* 🔧 *System Setup* *Timeframes Used:* - *D1* – Bias & CRT zones (High & Low) - *H1* – Confirm candle closes back inside CRT levels - *M5* – CISD pattern (entry trigger) --- 🟢 *Buy Setup – Logic* 1. *Detect D1 CRT Zone:* - Identify current day’s *High and Low* → define CRT levels. 2. *Wait for Sweep:* - Price must *break below D1 CRT Low* (wick). 3. *H1
Hey bro, can you help with NT8. On a vps, multiple algos and prop account but the strategies keep getting out of sync, going from true to false for no reason….. mid trade it pops errors.The algo codes are locked… other than that it’s open VPs, NT8 and strategy is open You will notice in the strategies xml that there are standard, then 100k and 50k versions…… Also I did version that are in strategy labeled "Apex"
So the things we need in algorithm of mql5 language EA in mt5 1. Depending on timeframe it can recognise the previous swing high and low 2. Timeframe is 5m,15m,1h,4h 3. It can recognise the basic Market bias that is market is bullish or bearish we can identify using (ema,rsi,basic smc bias,ict bias structure mapping) or use anything to find bias structure 4. EA should have option to change timeframe and change risk
I asked ChatGPT to come up with a strategy to trade the downside of gold. I'm looking for someone who can tell me whether the suggestion is feasible and, if not, how the scope and purpose of the paper can be achieved differently. At the end, a corresponding code should be created. Thank you for your feedback
I have a perfectly working EA that always gets altered, I need special security features implemented, and I already have a great idea of what I need. Super easy, codes already work, just need tweaking here and there. Cybersecurity proficiency would be a positive

Project information

Budget
30 - 300 USD