With a bit of debugging and effort in the trade functions this might be worth a look. Would be nice to visualize the patterns.
Why use OnStart()?
I don't think they bothered to compile this. Or want someone else to fix what they can't. return value of 'OrderSend' should be checked 01 HarmonicEA.mq4 124 9 return value of 'OrderSend' should be checked 01 HarmonicEA.mq4 140 9 return value of 'OrderModify' should be checked 01 HarmonicEA.mq4 187 21 return value of 'OrderModify' should be checked 01 HarmonicEA.mq4 195 21 I'll fix this later by turning it in to an indicator that don't place trades and trail stops. I rather use my own discretion on entry anyways.
Do you really think that a warning is a problem to compile ? Do You know how to fix this warnings? just anticipate with a int ticket=OrderSend(....) and bool mod=OrderModify(....)
It's easy.
Could you solve this ? some variable is zero so you can use a if ( variable != 0 ) { do this... } ;
I will check the code better. Thank's.
// Calculate the Fibonacci retracement levels
double XA = High[1] - Low[1];
double AB = High[2] - Low[2];
double BC = High[1] - Low[2];
double CD = High[3] - Low[2];
This gives the value of closed candle 1,2 and 3. Can you find a harmonic pattern in 3 candles ? No...
Harmonic AI Pattern
why write Harmonic AI Patten ? Just to call the attention ?
Or waste other people's time...

What does "AI" mean?
If this means artificial intelligence, then the script has nothing to do with artificial intelligence

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Harmonic AI Pattern:
HarmonicEA is an Expert Advisor (EA) developed for MetaTrader 4 (MT4) that utilizes harmonic pattern recognition and RSI-based signals to identify potential trading opportunities in the forex market. The EA is designed to detect various bullish and bearish harmonic patterns, including crab, butterfly, bat, deep bat, AB=CD, 3-drive, 5-drive, and shark patterns, across multiple timeframes. It incorporates risk management features such as dynamic lot sizing based on a percentage of account balance, maximum drawdown control, and a trailing stop mechanism to protect profits. HarmonicEA is suitable for traders seeking an automated solution to capitalize on harmonic patterns while managing risk effectively.
Author: Lukmon Timson