Scripts: Harmonic AI Pattern

 

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

 
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.
 
super
 
2024.05.19 18:32:26.778 2024.03.06 09:53:09  01 HarmonicEA EURAUD,H1: zero divide in '01 HarmonicEA.mq4' (249,33)

 

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()?

 
david1_s #:
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.

 
Bahaman Makiran #:
2024.05.19 18:32:26.778 2024.03.06 09:53:09  01 HarmonicEA EURAUD,H1: zero divide in '01 HarmonicEA.mq4' (249,33)

Could you solve this ? some variable is zero so you can use a if ( variable != 0 ) { do this... } ;

 
I think it could be a good idea add a margin in the calculation of patterns, an error margin.. some time patterns are not 100% like theory, so use something to be more flexible, adaptable.

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...

MQL5 forum
MQL5 forum
  • www.mql5.com
MQL5: Forum on automated trading systems and strategy testing
 
Automated-Trading:

Harmonic AI Pattern:

What does "AI" mean?

If this means artificial intelligence, then the script has nothing to do with artificial intelligence