Script collecting information about occuring candlestick patterns in tester and displaying aggregated results using the Backtest window

MQL5 Experts Scripts

Specification

The only purpose of this script will be to find initial settings for an existing EA, which uses different candlestick patterns as signals to enter the market. It has to give information about candle size and spread.

This script has to run in the tester (preferably only the tester) on any time frame, mostly the M1, M5, M15 chart, but also any other time frame and correctly extract the information about the candle characteristics and display them in an aggregated form in the Backtest window.

If it is not possible to modify the backtest window in this way, an alternative solution has to be provided.

What is meant by aggregated result is the following:
Like this functionality of the backtest window, I want that the average characteristics of the candlestick formations are displayed for every hour of the day (in points and %). This does not have to look like the graphs below. Preferably, it is in the form of a table.
This is just an example of what is meant by “aggregated results”.
Preferably, the script will also be able to aggregate the results by a custom time period, which is not necessarily one hour.

As already mentioned, this script has the only purpose to help finding initial settings for an existing EA.
One functionality of this EA is that for a selected number of bullish / bearish candles in a row + a corresponding selectable price movement a buy / sell signal is generated.

This is what a part of the input menu of this EA looks like:

The main thing I want from this script, is that it will count and display how many candlestick formations with consecutive bullish/bearish candles occur within an hour of the selected time period and the Average size of candlestick patterns in points and % is displayed. Candle number from 1 to 59.

Selected time period is whatever is chosen in the tester here:


Preferably the script provides the functionality to only look at a specific time period.
This can be achieved while collecting data or later, where the data is displayed in the backtest window. The latter is preferred.


(However, this is how it could look like, when the data collection of the script is limited via the input menu in the tester:

Possibility to choose multiple time periods in hours (the script only looks at included time period)
Include hours → ON / OFF
From:
To:

(4x the same input)

Possibility to exclude multiple time periods in hours (the script ignores excluded time periods)

Exclude hours → ON / OFF
From:
To:

(4x the same input)

Here is a list of things the script should collect information about and display aggregated results for the selected time period.


1. Amount of Consecutive positive, negative candles + Average size of candlestick formation in points and %
How Average size of candlestick formation could be calculated. If there is a more efficient way to calculate is that would be even better.

Bullish candlestick formation:
- points: (Close prize last candle of formation – Open prize first candle in formation) x 100
- %: (Close prize last candle of formation – Open prize first candle in formation) / Open prize first candle in formation x 100

Bearish candlestick formation:
- points: Open prize first candle of formation – Close prize last candle in formation x 100
- %:  (Open prize first candle of formation – Close prize last candle in formation) / Open prize first candle of formation x 100

In the following there will be an example how this aggregated information could look like. This is just an example. This example is only for one hour of the day. As mentioned before all hours of the day have to be displayed.

(See this again:
)

Preferably it is also possible to have the script display custom time intervals. How the results are displayed has to be discussed with the developer.

Example of what is meant by amount + size of candlestick formations
10 a.m – 11:am
Bullish candles:
- candle number 1: 15; 28p
- candle number 2: 8; 39p
- candle number 3: 4; 51p
- candle number 4: 1; 58p
- candle number 5: 0
Bearish candles:
- candle number 1: 18; 21p
- candle number 2: 5; 13p
etc.

2. Average maximum for bullish formations, Average minimum for bearish formations in points and %.

Maximum / Minimum includes the wick / shadow of the candle, while average size only included the candle body.

How maximum / minimum could be calculated.

Bullish candlestick patterns:
points: highest price in formation - open prize first candle of formation
%: (highest price in formation - open prize first candle of formation) / open prize first candle of formation x 100

Bearish candlestick patterns:
points: Open prize first candle of formation – highest price in formation
%: (Open prize first candle of formation – highest price in formation) / open prize first candle of formation x 100

Example
10 a.m – 11:am
Bullish candles:
- candle number 1: 15; 28p, maximum: 38p etc.
- candle number 2: 8; 39p
- candle number 3: 4; 51p
- candle number 4: 1; 58p
- candle number 5: 0
Bearish candles:
- candle number 1: 18; 21p, minimum: 31p etc.
- candle number 2: 5; 13p
etc.

3.  Average spread in points and %

The spread is calculated at the beginning of each new candle and divided by 60 to get an average for every hour.

spread in points: ask – bid
spread in % =  (ask – bid) / ask * 100

The requirement specifications for this task are only a draft and are to be completed with suggestions of the developer how to achieve the outlined task.
The task for the developer does not only include the writing of the code, but also to think about of how to realize the task, which again, is only outlined in the requirement specifications.
Therefore the developer needs to completely understand the task.
It is in the interest of the developer to ask all the questions which are not clear beforehand.
To solve the task, it is necessary for the developer to communicate his strategy and understanding before the coding can begin.

Additional payment based on the work required to complete the task is negotiable as long as the desired result will be achieved.

At the end the source code is required.
Troubleshooting has to be provided by the developer in case of errors which are detected only after the payment is completed.

Developers which are interested in a long term cooperation are preferred.

Responded

1
Developer 1
Rating
(123)
Projects
144
23%
Arbitration
5
0% / 60%
Overdue
4
3%
Working
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(319)
Projects
339
71%
Arbitration
4
100% / 0%
Overdue
1
0%
Working
4
Developer 4
Rating
(14)
Projects
19
11%
Arbitration
1
0% / 100%
Overdue
5
26%
Free
5
Developer 5
Rating
(5)
Projects
3
33%
Arbitration
2
0% / 50%
Overdue
1
33%
Loaded
Similar orders
Please note that my budget is for both mt4 and mt5 platforms The EA should have 1. An option that I can change it parameters, that's the period, method and application 2. The EA should sell when on every bullish candle that closes under the MA 3. The EA should buy on every bearish candle that forms Above the EA. It's should close trades on reverse cross. I mean when it's in a buy trade and crosses the MA for a sell
I have working MT4 and MT5 example program code using pipes via importing kernell32.dll in MT5 to receive transactional messages sent from another MT4 instance running. Most of the time it works fine. But intermittently I get an ‘Access violation’ error generated showing in the Experts tab of MT5. It fails to read the message sent from MT4 and does not trap the error. Also, when I try it on a different VPS computer -
A Hedge EA 50+ USD
Hi I need someone to develop a Hedge EA with specific actions once the maximum number of trades is reached before TP The input would determine the maximum number of hedge before the specific actions take place As an example if the maximum number of of trades is 3 and the hedge mutiplier is 3 Initial trade(Buy): 1 lots Hedge (Sell): 3 lots (1x3) Hedge (Buy): 9 lots (3x3) Then the maximum trades number is reached - no
Helo Geeks i need an experienced developer of forex Eas who can make my purchased EA that has the activation llicense to run to my mt5. I have purchased this EA to someone on telegram but he just not responding to me to give me activation license ,but i believe there are geeks here who can make it run to my mt5. i will share more details on that
Am nevoie de o conversie a unui EA din mql4 in mql5. La final sa fie testata, compilata si rezultatul sa nu aiba erori. Modificarea parametrilor sa se faca dint-un fisier cu extensia txt. Am eu modelul Hi. I need a conversion of an EA from mql4 to mql5. At the end, it should be tested, compiled and the result should have no errors. Modifying the parameters should be done from a file with the extension txt. I have the
Building an expert who copies trades between two platforms on two different devices...controlling the slave’s account number...adding the necessary settings...copying direct trades and copying pending trades...the best developer who has knowledge of this type of expert is fluent in the English language and fast in Reply
Create a mt5 Grid bot EA Set configurable parameters - lot size, grid size & close percentage, increment value. When there is no open trade, open a buy and sell at the same time and same price, with lot size as defined in the lot size variable. Set pending orders - buy and sell at previous lot size + increment value; price at current trade price + grid size. buy and sell at previous lot size + increment value; price
Looking for experienced developer to fix and check the indicator functions in my EA. Main problem to fix is that there is option to open new trade at close of previous which doen't always work on one of the indicators - depending on user inputs. Also if trading is disabled using AutoTrading button, then re enabled the EA waits for new signal to start, but it needs to place trade immediately according to current
I have an EA which trades with XAUUSD with a grid system, and I need to add a few features: 1.- The EA works with an indicator and open many trades as a grid system. I need the EA to open JUST 1 TRADE INMEDIATELY WHEN THE TREND SHOWS. 2.- I need the EA to keep that trade open until it reaches TP or the reverse signal shows. The EA has already the 'close if reverse signal' parameter. 3.- I need to create a parameter
To automatically execute specified trading lots based on RSI lower than 30 and higher than 70. Price must be at least $2 away from defined price benchmarks. Bot must close trade with $2 take profit

Project information

Budget
60 - 250 USD
VAT (19%): 11.4 - 47.5 USD
Total: 71.4 - 297.5 USD
For the developer
54 - 225 USD
Deadline
from 4 to 30 day(s)