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

MQL5 Experts Scripts

Spécifications

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.

Répondu

1
Développeur 1
Évaluation
(161)
Projets
192
26%
Arbitrage
8
25% / 38%
En retard
5
3%
Chargé
2
Développeur 2
Évaluation
(1)
Projets
1
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(356)
Projets
377
71%
Arbitrage
4
100% / 0%
En retard
0
Travail
4
Développeur 4
Évaluation
(14)
Projets
19
11%
Arbitrage
1
0% / 100%
En retard
5
26%
Gratuit
5
Développeur 5
Évaluation
(7)
Projets
5
20%
Arbitrage
3
0% / 33%
En retard
1
20%
Travail
Commandes similaires
Preciso de um EA que abra ordens a mercado a partir de um indicador, Ele precisa obter take e stop loss fixos, spread máximo, horários de início e final das operações, meta e stop diário, martingale, painel e a função no script para que eu possa ceder o EA apartir do id do mt4 de terceiros
Hello Investors, I'm selling a profitable and stable expert advisor trading on the Gold (XAUUSD) pair using a cutting-edge scalping strategy. The EA is able to generate a stable monthly income without using martingale strategy, and with an optional cut loss in place. Particularly the average monthly gain can go from 2-3% (at a relatively low risk, with an historical max DD of 6%) to 20-30% (with an aggressive style
Hello, I have a strategy and I need a very good programmer who will create me an exprt or make me an indicator that will open positions for buy/sell limit (see picture below). The indicator/Expert will have to open positions (buy/sell limit) regarding the strategy and indicators (I will explain it more in collaboration). Below I will give pictures of what I mean. I will send a link to the telegram group where it
Atomic Analyst Indicator to EA. I have an mt4 indicator called Atomic Analyst. The indicator gives buy/sell signals as shown in the screenshot. I want to know if you can take this indicator, and create an EA that automatically takes the signals. The indicator puts in the SL and TP1, TP2, TP3, TP4, TP5 automatically. I would like the option to put in my lot size parameter and I would also like an automatic trail stop
can you help me with Ctrader i need modification on the linkhttps://docs.google.com/document/d/1fggk49xWbnwahtfOlE-U7G6muZB1FT8eWmftGiY7R-s/edit?usp=sharing can you assist with cTrader modifications to enhance functionality and improve performance. do text me if you a professional on it i will be looking forward to your response best regards
MT4 Expert Advisor 30 - 120 USD
EA sittings The EA utilises the concept of grid and hedging by creating a zone for recovering losing trades It is a continues trading EA without any stop loss. The EA initially aims to trade continually without the need to hedge. The EA enter the first trade following the direction of the moving average (when price is above or below the moving average), and only hedge when, the trade goes against the trend and reach
Would I honestly need is someone who can make a profitable EA for me that can at least make me around $80 a day starting with $50 and the EA must be able to work with exness the EA should automat trades 24/7. Broker = Exness Pairs = USD/JPY XAU/USD and etc Chart time frames = M1 M15 History = last month till last 6 months. Lot size 0.10 take profit at $2 stop
Hello i am seeking a skilled MetaTrader 5 (MQL5) developer to modify an existing Telegram signal copier. The goal is to enhance the copier's functionality, reliability, and user experience. kindly bid this job to get started immediately
Hello, I’m looking for assistance with creating or customizing a TradingView indicator to suit my trading needs. If you have experience in this area, please reach out. Your help would be greatly appreciated. Thanks
# MT4 Expert Advisor Development Rules ## Time Period Definition 1. Allow user to define a specific time period (e.g., 10:00 to 15:00). 2. Identify and store the high and low prices within this period. ## Price Breakout Detection 3. Monitor current price for breakouts above the period high or below the period low. ## Signal Confirmation (signals will be taken on m5 timeframe) 4. After a breakout, wait for a signal

Informations sur le projet

Budget
60 - 250 USD
TVA (19%): 11.4 - 47.5 USD
Total: 71.4 - 297.5 USD
Pour le développeur
54 - 225 USD
Délais
de 4 à 30 jour(s)