Pattern-Finding EA (Pattern-Finding EA) | Foreign Exchange EA Download- MT4/MT5 Resources
Hey everyone,
I know it's been a while since I posted a new EA on this forum. I've been refining the problems I'm having in finding patterns and have tentative solutions.
The purpose of this EA is to obtain the moving average of the x most recent bars on the chart. The EA then scans backwards on the chart, looking for the same number of bars with a similar moving average shape - measured using a simple correlation formula.
When the correlation ratio is above a certain threshold, the EA takes y bars after the matched set of bars and projects them into the future of the chart, creating something like the image below.
http://content.screencast.com/users/...10-20_2227.png
Whenever a prediction appears on the chart, the EA calculates the Rick reward ratio for long trades and short trades and expects that the price will reach the predicted extreme value. There are settings for adding a buffer based on a percentage of that projection.
I released this EA into the wild in an attempt to improve it. The pattern recognition method is crude at best, but much more accurate than my previous attempts. This EA has been released as a favor to you, and in return I will thank you for your efforts to find proven ways to improve this EA.
The following is a suitable description of the settings specific to this EA:
I know it's been a while since I posted a new EA on this forum. I've been refining the problems I'm having in finding patterns and have tentative solutions.
The purpose of this EA is to obtain the moving average of the x most recent bars on the chart. The EA then scans backwards on the chart, looking for the same number of bars with a similar moving average shape - measured using a simple correlation formula.
When the correlation ratio is above a certain threshold, the EA takes y bars after the matched set of bars and projects them into the future of the chart, creating something like the image below.
http://content.screencast.com/users/...10-20_2227.png
Whenever a prediction appears on the chart, the EA calculates the Rick reward ratio for long trades and short trades and expects that the price will reach the predicted extreme value. There are settings for adding a buffer based on a percentage of that projection.
I released this EA into the wild in an attempt to improve it. The pattern recognition method is crude at best, but much more accurate than my previous attempts. This EA has been released as a favor to you, and in return I will thank you for your efforts to find proven ways to improve this EA.
The following is a suitable description of the settings specific to this EA:
- outer int window length = 20;
- This is the number of bars that the EA will try to find a match in the history.
- external int PredictionLength = 10;
- This is the number of bars after which the EA will predict future matching groups
- extern int search length = 100000;
- This is the number of bars to search for.
- external int MAPeriod = 1;
- This is the number of bars on which the moving average is calculated
- extern int MAPrice = PRICE_CLOSE;
- This is the price used to generate the moving average. Each number is associated with a price as shown below http://docs.mql4.com/constants/prices
- external int TopResults = 10;
- This is the maximum number of outcomes to stack when predicting the future.
- external doubleMinCorr = 0.90;
- This is the minimum relevance considered to predict future outcomes.
- externaldoubleTPBuffer = 0.20;
- This is the percentage of the future range by which the take profit will be reduced.
- externaldoubleSLBuffer = 0.10;
- This is the percentage of the future range by which the stop loss will increase.
- External doubleMinRR = 2;
- This is the minimum reward/risk ratio for trading with the EA.
























Attachment to original post (1)
📦 Summary of post attachments (8)
Below are all the files (8) shared in the reply.
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •