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

İş Gereklilikleri

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;

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(64)
Projeler
144
46%
Arabuluculuk
19
42% / 16%
Süresi dolmuş
32
22%
Serbest
Benzer siparişler
I need a custom MT5 Expert Advisor named “Dark Venus”. Strategy details: - Timeframe: M5 / M15 - Market: Forex (all major pairs) - Strategy type: Trend + Scalping - Indicators: • EMA (Fast & Slow) • RSI filter • ATR for Stop Loss & Take Profit - Trades only during low-spread sessions (London & New York) Trade Rules: - Buy when fast EMA crosses above slow EMA + RSI confirmation - Sell when fast EMA crosses below
//+------------------------------------------------------------------+ //| FXE Trader Smart AI EA (Deriv MT5 Forex) | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; // ===== INPUTS ===== input double RiskPercent = 1.0; // % risk per trade input int FastEMA = 50; input int SlowEMA = 200; input int RSI_Period = 14; input int
Acquire existing profitable Expert Advisor with source code for client investment portfolio - Full .mq5 code (clean & commented) - 4+ years backtest (Jan 2022 - Dec 2025, 100% tick data) - ~10% monthly return - Max DD ≤15% - No grid/martingale (strictly enforced) - 1-month forward test required - Send trade history + EA details for review - Demo EA file needed for backtest replication - Open to any currency
i need the multi-chain dex bot with set up and installation i need you to help me set the copy reading wallet on binance or phantom with capital for 100 Euro to 1 Million in one year
Please teach me orderflow 300 - 3000 USD
I am searching a profitable trader that is using orderflow in his analysis. Only serious offers please. Please send me your history of trades. I need proof. Merry Christmas everyone
Looking for an Existing Profitable MQL EA for XAUUSD (Gold) – Daily Micro-Scalping I am looking for an already existing Expert Advisor (EA) or script for XAUUSD (Gold) based on a daily micro-scalping strategy . I am not looking to develop a new strategy from scratch , but rather a ready-to-use or previously used system with proven performance. Basic Requirements Instrument: XAUUSD (Gold) Platform: MT5 (preferred) /
Greetings, I'm seeking a price quote for the following EA description. 1) Short positions are opened after trades that have closed below the open of the trade. 2) Long positions are opened after trades that have closed above the open of the trade. 3) The base lot size plus the spread is applied for every trade that opens after the take profit has been reached. 4) Double the lot size of the previous trade plus
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss

Proje bilgisi

Bütçe
30+ USD
Son teslim tarihi
from 3 to 7 gün