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

Техническое задание

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.

Откликнулись

1
Разработчик 1
Оценка
(250)
Проекты
313
28%
Арбитраж
34
26% / 65%
Просрочено
10
3%
Работает
2
Разработчик 2
Оценка
(1)
Проекты
1
0%
Арбитраж
0
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(468)
Проекты
486
75%
Арбитраж
6
67% / 17%
Просрочено
0
Работает
4
Разработчик 4
Оценка
(14)
Проекты
19
11%
Арбитраж
1
0% / 100%
Просрочено
5
26%
Свободен
5
Разработчик 5
Оценка
(9)
Проекты
8
50%
Арбитраж
6
17% / 50%
Просрочено
2
25%
Свободен
Похожие заказы
I run an ea it makes good profits bit that one bad grid blows up the account. I want an EA which runs parallel to it which can intelligently close bad trades or grids. It shouldn't close recoverable trades but close very bad entries and grids. It can even close with hedging. The goal recover max and also not blow up the account
I need a bot that open a trade when I click on a button. the only use case is for prop firm to see that I am operating from a bot. It need only the lot size and direction input
I am looking for an expert MQL5 developer to build a high-precision Hedging System between two different MT5 brokers running on the same local PC. Core Objective: Execute opposite (inverse) trades between a Master and Slave account (e.g., Master BUY = Slave SELL, Master SELL = Slave BUY). The Challenge: Standard "Trade Copiers" are insufficient as they cannot prevent single-legged exposure when using manual trading
Aranda 30+ USD
- Project Overview: A brief description of the project’s purpose and the main problem it solves. - Core Features: List the essential functionalities required (e.g., user registration, payment gateway integration, real-time data tracking). - Technical Stack Preferences: Specify if you require a particular programming language, framework, or platform (e.g., Python/Django, React Native, MQL5). - User Interface (UI)
I want robot that can help me trade and make some money so that I can be able to learn from it while I'm still in depot account now.Is how it gonna help me with some money
Project Requirements: I need a professional MQL5 developer to create a high-frequency Gold (XAUUSD) scalping EA for MT5, optimized for Exness Zero/Raw Spread accounts. ​Core Logic: ​Strategy: Scalping on M1/M5 Timeframe using price momentum. ​No Time Limit: Since I am using an ECN broker, I do not need the 4-minute duration rule. The EA should close trades as soon as the target is hit. ​Filters: > 1. Max Spread
Hello, I have two requests: First: Feature Modification Request Currently, the EA places only one pending order at a time. I want to modify this to place two opposite pending orders (Buy Stop and Sell Stop) simultaneously, with the distance between them aligned with the existing Breakeven and Trailing Stop settings in the bot. How it should work: The EA places a Buy Stop above current price and a Sell Stop
Hello, I am looking for a professional developer to create a fully automated MT5 Expert Advisor with complete source code and resell rights. Below are my requirements: 🔹 Strategy Details: Strategy Type: (Trend + Controlled Grid / or your preferred logic) Indicators: EMA 50, EMA 200, RSI (customizable inputs) Entry Conditions: Buy when price above EMA 50 & EMA 200 + RSI confirmation Sell when price below EMA 50 & EMA
Hello, I need a professional MT5 Expert Advisor for currency trading. PAIRS: EURUSD, GBPUSD, USDJPY, USDCHF TIMEFRAME: M15 STRATEGY: - EMA 8 cross EMA 21 (entry signal) - EMA 50 for trend filter - RSI 14 confirmation (Buy > 52, Sell < 48) - No trade if RSI > 75 or < 25 SESSION: London + New York only 07:00 to 17:00 GMT No weekend trading TRADE MANAGEMENT: - Lot size: 0.06 - Take Profit: $15 per trade - Stop Loss: $8
Knight king 30+ USD
1. The bot must start when the markets start. 2.Then his capacity must be $1000. 3.and his trades must start at 0.04 slot and it must open up most available trades

Информация о проекте

Бюджет
60 - 250 USD
Сроки выполнения
от 4 до 30 дн.