A script / expert to analyze the results of trading on historical data

MQL4 Esperti Script

Specifiche

The task is to create a script / expert to analyze the results of trading on historical data.
1. Data sources – the terminal history and the report of the strategy tester (selected in the settings).
2. Initial parameters:
- data source (file name in case of strategy tester)
- date range for analysis
- the period of "post-analysis"
3. Calculated parameters:
a) for each transaction
- MAE (Maximum Adverse Excursion) of two types, including the ability to analyze the price behavior during a certain period after the closing of the transaction (specified in the parameters)
- MFE (Maximum Favorable Excursion) of two types, including the possibility of analyzing the behavior of the price during a certain period after the closing of the transaction (specified in the parameters)
- HPR (holding period returns)
- enter efficiency *
- close efficiency 
- transaction efficiency
b) summary
- Sharp Ratio
- Z-score
- AHPR
4. The final result is in the form of a csv file, with a table containing  rows with data for each transaction, including columns:
- tickets No
- type of trade 
- volume of the trade
- the Open price
- the Close price
- opening time
- closing time
- maximum price per trade
- minimum price per trade
- time of the maximum price after the start of the trade in minutes
- time of the minimum price after the beginning of the trade in minutes
- entrance efficiency *
- Exit efficiency *
- efficiency of the trade *
- MAE
- MFE
- HPR
- MAE "extended" (on the range of "post-analysis" after the close of the transaction)
- MFE "extended" (on the range of "post-analysis" after the close of the transaction)
- time of the maximum price after the end of the transaction in minutes within the range of "post-analysis"
- the time of the minimum price after the end of the transaction in minutes within the range of "post-analysis"

In the end, the summary data is placed

* The efficiency of the entrance  is calculated by the formulas:
for long positions
enter_efficiency = (max_price_trade-enter_price) / (max_price_trade-min_price_trade);
for short positions
enter_efficiency = (enter_price-min_price_trade) / (max_price_trade-min_price_trade);
The efficiency of the exit is calculated by the formulas:
for long positions
exit_efficiency = (exit_price - min_price_trade) / (max_price_trade - min_price_trade);
for short positions
exit_efficiency = (max_price_trade - exit_price) / (max_price_trade - min_price_trade);
The efficiency of the transaction is calculated by the formulas:
for long positions
trade_efficiency = (exit_price-enter_price) / (max_price_trade-min_price_trade);
for short positions
trade_efficiency = (enter_price-exit_price) / (max_price_trade-min_price_trade);
general formula
trade_efficiency = enter_efficiency + exit_efficiency-1;

Con risposta

1
Sviluppatore 1
Valutazioni
(64)
Progetti
144
46%
Arbitraggio
20
40% / 20%
In ritardo
32
22%
Gratuito
Ordini simili
Simple MT5 indicator showing Friday close to Monday open gap on chart. Features: · Draw horizontal line at Friday close · Label showing gap size in pips · Toggle on/off
Hi. I have the statement of the Ea live results that I want to have. Please check this video from YouTube and the statement to see how the robot is working every day. I want a robot like this or better. The robot has 1-4% drawdown and 300-500% profit per month The robot works with ICMarkets Global 1:500 leverage and FPMarkets. The robot works between 10-30 minutes London session. Also the Robot can start trading from
MT5 Expert Advisor Development Project Overview I am looking for an experienced MQL5 developer to build a custom MetaTrader 5 Expert Advisor based on a grid-cycle trading framework. This is not a standard grid EA . The system combines: Session-based trade initiation Multi-filter signal generation Dynamic grid management Advanced basket management State-machine-driven trade lifecycle management Dynamic take-profit
I'm building a trading signal platform called Tradexa , focused on US30 and Nasdaq indices. For Phase 1, I need a developer to implement the signal-generation engine based on a detailed strategy document that I will provide. Requirements Multi-timeframe analysis (H4 → H1 → M15) Generate signals on M15 only when all strategy conditions are satisfied Detect liquidity sweeps Market structure shift (BOS/CHOCH) Retest
Hi, ink it would be that much. I have an existing EA that has just stopped working, I installed a new MT4 platform onto a new laptop and now it will not execute any trades, although I have put a price of 30usd I don't think it would be that much. Thanks Roman
Need an MT5 EA coded in MQL5. Strategy uses internally calculated MT5 Heikin Ashi candles, EMA 9 and EMA 21 on M1 USDJPY. Fixed lot size 12.20. One trade at a time. 40-point stop loss. Exit after 3 consecutive opposite Heikin Ashi candles. I have a detailed strategy document and video examples of valid and invalid entries. Videos linked show MT5 IOS but custom EA code will be used for windows MT5
We need an experienced MQL5 developer to build the Equity Guardian Strategy — a risk management overlay EA designed to run alongside two existing Expert Advisors. The Guardian monitors account equity and automatically switches to Recovery Mode when drawdown reaches a set threshold. While in Recovery Mode, the EA must block or ignore trading signals from the other two Expert Advisors. The system uses dynamic hedging
Just a straight forward ea that reacts from candle close and open area using martingale option knowing what the broker charges per pair because will use it in a Z spread account so the ea will know what they charge or I can manually set charges so before ea close in profit it makes sure it covers the charges and added little profit before closing
I require a custom EA and an accompanying custom indicator built in MQL5 for Meta Trader 4/5. The EA must be fully automated (Algo Trading); Telegram-Signal-Linked and named 'AMK Fx'
Hello, I am searching an honest trader who will teach me profitable strategy that have 0/1 rules without guessing. Only serious offers please with example of trade and explanation in first message

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 3 a 7 giorno(i)