Job finished
Execution time 5 days
Feedback from customer
Impossible project, my mistake due to limitations of mql5 ontester function. Despite this Saad put many hours into this project. A* would always recommend.
Feedback from employee
Great collaborating with you once more!
Specification
Hello
I want my custom max forumla used in MT5 modified to check the result, if there is a return value of the same number return zero / void the result to avoid getting mutliple results of the same value similar settings.
- The problem is i get tons of results of the same value when doing many generic testing runs on MT5 (this is expected and normal)
- I am looking for a solution when each test / run is complete it checks that the end results value is unique and if so it allows it to pass
- If the value is a duplicate, it voids the result to 0 (currently I export to excel and remove duplicate rows that have the same result value to manually filter this out)
- The aim is to only have unique results in the optimisation profile when its complete, allowing for a much faster testing scheme.
- Note that there are tons of zero values and to avoid dividing by zero errors.
input string OnTester = "------------ Custom Max ------------"; // ------------ Custom Max ------------ input int MinTrades = 20; // Minimum required trades input double MaxEquityDrawdown = 5.0; // Maximum allowed drawdown input string OnTesterEnd = "------------ Custom Max End ------------"; // ------------ Custom Max End ------------ double OnTester(void) { // Get the required statistics int totalTrades = TesterStatistics(STAT_TRADES); int profitTrades = TesterStatistics(STAT_PROFIT_TRADES); int lossTrades = TesterStatistics(STAT_LOSS_TRADES); double totalProfit = TesterStatistics(STAT_PROFIT); double profitFactor = TesterStatistics(STAT_PROFIT_FACTOR); double equityDrawdownPercent = TesterStatistics(STAT_EQUITY_DDREL_PERCENT); // Calculate the target drawdown as 50% of the MaxEquityDrawdown double TargetEquityDrawdown = MaxEquityDrawdown * 0.5; // Check the conditions for voiding the results if (totalTrades < MinTrades || equityDrawdownPercent > MaxEquityDrawdown || lossTrades == 0) { return 0; // Void the result if not meeting trade or drawdown criteria, or no losing trades } // Calculate the trade win ratio double tradeWinRatio = (double)profitTrades / (double)lossTrades; // Adjusted drawdown impact calculation double drawdownImpact = 1 - fabs(equityDrawdownPercent - TargetEquityDrawdown) / TargetEquityDrawdown; drawdownImpact = MathMax(0, drawdownImpact); // Ensure drawdown impact is not negative // Apply the new formula with adjusted drawdown impact double finalCriterion = (totalProfit / equityDrawdownPercent) * (profitFactor / tradeWinRatio) * drawdownImpact; return finalCriterion; }
Responded
1
Rating
Projects
352
29%
Arbitration
37
27%
/
65%
Overdue
10
3%
Loaded
2
Rating
Projects
208
61%
Arbitration
10
80%
/
0%
Overdue
0
Free
Published: 1 code
3
Rating
Projects
203
47%
Arbitration
5
20%
/
60%
Overdue
3
1%
Free
4
Rating
Projects
6
0%
Arbitration
5
0%
/
80%
Overdue
2
33%
Free
5
Rating
Projects
478
40%
Arbitration
105
40%
/
24%
Overdue
82
17%
Loaded
Published: 2 codes
6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Maximas e Minimas + Super Trend
35+ USD
Indicador Maximas e Minimas + Super Trend O Indicador MAX/MIN é um indicador de análise técnica para o MetaTrader 5 , desenvolvido para ajudar você a identificar regiões importantes de preço e possíveis oportunidades de compra e venda. O que ele faz MAX/MIN: identifica máximas e mínimas relevantes do mercado e mostra os preços no gráfico. HH / HL / LH / LL: ajuda a visualizar a estrutura do mercado, mostrando quando
Hello Traders, Have a trading strategy or idea you want to automate? I specialize exclusively in MQL5 development, helping traders turn their concepts into professional trading solutions. Custom Expert Advisors — automate your strategy and reduce manual execution Custom Indicators — transform your market ideas into powerful trading tools Fix & Debug — identify errors and get your existing code working properly
I DO NOT need any programming or strategy development. I already have a working NinjaTrader 8 automated strategy based on a 3/5 EMA crossover. I need you to run my existing strategy through NinjaTrader Strategy Analyzer/Optimizer, test the existing adjustable parameters, and find robust settings with the best profit factor and lowest reasonable drawdown. I will provide the existing NinjaScript ZIP. I do not want the
I'm looking for an experienced developer to create an automated gold trading bot. The bot should be compatible with MetaTrader 4/5 and TradingView. Key Requirements: - Automated trading bot - Compatible with MetaTrader 4/5 and TradingView - Implement scalping and swing trading strategies Ideal Skills and Experience: - Proficiency in trading algorithms - Experience with gold trading - Familiarity with MetaTrader and
I need a robust optimization of my MT5 EA, mainly for XAUUSD (Gold). Please optimize the existing adjustable parameters such as entry/exit settings, SL/TP, trailing/break-even settings, and any other strategy parameters that are appropriate. I want the optimization focused on stable profitability, low/moderate drawdown, and robustness rather than simply the highest possible profit. Please use out-of-sample testing
NinjaTrader 8 / NinjaScript Phase 1 build: convert an existing Auction Market Theory (AMT) strategy into objective, alert-only decision-support logic. Not a bot, no auto-execution — trades stay manual. Covers NQ/MNQ, ES, CL, MGC using 30-min TPO/Volume Profile context with 5-min confirmation: one 5-min close outside VAH/VAL = acceptance, close back inside = rejection. Dashboard shows bias, auction state, location
Hello, I need a custom NON-REPAINT MT5 indicator that gives sell/buy arrow signals 1–2 candlesticks before a spike on Crash and boom indices respectively occurs. Requirements: Works perfectly on MT5 Shows arrows before the spike (1–2 candles earlier). Non-repaint – once the arrow appears, it must stay. Should be accurate, not quantity — only quality signals. Must work on both demo and live accounts. I want the
Trading view to thinkorswim
30+ USD
Hello, I saw an indicator on TradingView and would like to know if you will be able to convert it for use on Thinkorswim platform? Thanks. if anyone can help me with it kindly do well to bid it urgent thanks looking forward too see you
Simthandile sim new indicator
40 - 300 USD
calcVolume( void ) { //--- MqlRates rates[]; if ( CopyRates ( _Symbol , PERIOD_CURRENT , startTime, endTime, rates) > 0 ) { double rangeHigh = rates[ 0 ].high, rangeLow = rates[ 0 ].low; int count = MathAbs ( iBarShift ( _Symbol , PERIOD_CURRENT , startTime) - iBarShift ( _Symbol , PERIOD_CURRENT , endTime)) + 1 ; //---VERTICAL PRICE RANGE for ( int b = 0
Gold HFT Signal Pro
30+ USD
Create an MT5 Expert Advisor (EA) for trading Gold (XAUUSD). The EA should provide BUY and SELL signals based on trend direction, market momentum, and price action. It should automatically place trades only when the entry conditions are met. Risk management: Use a small adjustable lot size. Include Stop Loss (SL) and Take Profit (TP). Include a maximum daily loss limit. Include a maximum number of open trades. Do not
Project information
Budget
40+ USD
Deadline
to 10 day(s)