Need MQL4 formulas to gather statistics of a magic number

Tarea técnica

Hi there,

There is no need to build the indicator or the EA, I need mql4 formulas to gather statistics of a specific magic number.

* If you found out that I've missed some important metric/factor - You are more than welcome to add it.



per magic number
explanation example
Buy Trades the amount of short positions and percentage of won thereof 6 (60%)
Buy Pips sum total pips achieves from buy trades 2342
buy lots  Best Trade 3 trades
Buy Profit sum p/l from buy trades, by currency $ 99993
Sell Trades the amount of short positions and percentage of won thereof 4 (40%)
Sell Pips sum total pips achieves from sell trades 2342 pips
sell lots sum all lots from sell  trades 3 lots
Sell Profit sum p/l from sell  trades, by currency $ 99993
Total Trades sum all buy and sell trades 12 trades
Total pips  sum all pips achieved form buy and sell trades 6677 pips
Gross Profit the sum of all profitable trades in terms of money $ 999
Gross Loss the sum of all unprofitable trades in terms of money $ -800
Total P/L (Total Net Profit) financial result of all trades. This index represents a difference between the "Gross Profit" and "Gross Loss $ 200
current floating P/L  open positions profit/loss $ 300
current floating P/L by pips open positions total pips. 240 pips
Swap  total swaps, by currency $ - 600
Commissions   total commissions, by currency $ - 100
Profitable trades sum of all winning trades 54 trades
Loss trades sum of all losing trades 4 trades
Avg Win  avg of win trades - by % / money / pips 20% / $ 40 / 99 pips
Avg Loss avg of losing  trades - by % / money / pips 80% /$ -50 / - 80 pips
Best Trade the best historical % gain and corresponding monetary profit 5% / $443
Worst Trade the best historical % loss  and corresponding monetary loss (-)5% / $-443
Maximum consecutive wins (money) the longest series of profitable trade positions and the sum of their wins $600
Maximum consecutive losses (money) the longest series of unprofitable trade positions and the sum of their losses; $-900
Maximal consecutive profit (count) the maximum profit of a series of profitable trades and the amount of profitable trades corresponding with it; 2
Maximal consecutive loss (count) the maximum loss of a series of unprofitable trades and the amount of unprofitable trades corresponding with it; 3
Win Ratio % profitable trades/all trades 60%
MAX Drawdown maximal loss of the local maximum in the deposit currency and in percents of the deposit 20%
Return /Drawdown Ratio Return /Drawdown Ratio 2
Profit Factor (Sum of earnings) / (Sum of losses) 1.6
Avg trades per day 3
Avg trade Length 7 hours
total trading days 555
Take Profit Ratio avg win / avg loss
Expetancy The average amount you can expect to win (or lose) on every trade. $50
Standard Deviation  Indicated how much variation or dispersion there is from the mean (Expectancy) $72.03
Growth time-weighted return (TWR) that mesures the performance of a dollar invested in the system since the inception 5555%
ABS Growth Return of the investment as a percentage of the total deposits 333%
Compound Daily Growth Daily compound growth leading to the total Growth over entire trading period 1%
Compound Monthly Growth Monthly compound growth leading to the total Growth over entire trading period 5%

 

Han respondido

1
Desarrollador 1
Evaluación
(879)
Proyectos
1392
67%
Arbitraje
117
32% / 42%
Caducado
215
15%
Trabaja
2
Desarrollador 2
Evaluación
(22)
Proyectos
25
4%
Arbitraje
0
Caducado
5
20%
Libre
3
Desarrollador 3
Evaluación
(49)
Proyectos
77
43%
Arbitraje
6
33% / 50%
Caducado
22
29%
Libre
4
Desarrollador 4
Evaluación
(28)
Proyectos
30
63%
Arbitraje
0
Caducado
4
13%
Libre
Solicitudes similares
I want to convert my EA from MQ4 to MQ5. The EA strategy must function the same. The EA must work with back tester. EA function with no errors. MQL5 source when the job is completed
A green point should be added at the Low point of candlesticks in the oversold zone—it is the L point. If there is at least one L point between two H points, search for a LL point in the interval between two H points. The candlestick with the lowest Low price will be the LL point. Generally, the LL point is not necessarily an L point. Search for candlesticks with the lowest Low price. If there is at least one H point
Hello, I am looking for developer who develops me a renko trading robo with following requirement Time :1 sec Box assignment method : Percentage change LTP Source : Close/OHLC Auto Break-even setup option after certain box Trialling Profit Pips after certain box profit with auto Sl set in PIPs Auto open reverse trade after hitting Sl with given conditions . It is very simple trading tool
Hey greetings, It my pleasure to met you . I need a MT4 develop that can develop an EA based on alert . If you are a professional MT4 programmer you can kindly bid for this project and let proceed
I've use most of code from this script, add some more filter, and added different kind of moving avg instead of rsi input .. please check the source code .. . 70-80% is similar to it. Please check can you convert And are you familiar with backtest.py library? Oky. This library has ML approach to get the optimized backtest parameters right ? included for this but let me know what you think? can you install backtest.py
CHAPTER 1: BASICS 1.THE BASICS 1.1. EXPANSION AND RETRACEMENT Expansion =>occurs when there is an impulse movement towards a direction. Retracement => is the correction movement after an impulse movement. 1.2. FIBBONACCI RETRACEMENT USED TO DETERMINE THE END OF THE RETRACTION MOVEMENT, USUALLY THE PRICE RETRACTS TO 50% OR UNTIL OTE (0.62, 0.705, 0.79) BEFORE ANOTHER IMPULSE MOVEMENT OCCURS. 1.3. BMS - BREAK IN MARKET
Hello i need someone who can convert a trading view indicator into an mt5 indicator that can work smoothly also need to add an alert on the indicator i will require to test the indicator run it for 1-2days to confirm all is okay thank you
The requirements for the order of robots XAUUSD and XAGUSD EURUSD forex in the STOP loss TAKE profit signal in this order, you can bring benefits to the changes in the market, that is, when the market changes frequently, it will also help to prevent losses and bring great profits all work to trade high and low python line position
I'm seeking a C# developer with Quantower experience to assist me in exporting data from the Option Analytic panel in real-time via an API. This data will be exported based on a window app, not a web app. You can review the document at the following link : . https://github.com/Quantower/Examples/blob/master/IndicatorExamples/GetOptionsInfo.cs Please check it before bidding NOTE : - Quantower is an app, not web
Please I Need A Programmer Who Can Create A Requirement Specification Document For My Trading System THE IDEA OF THE INDICATOR Create A Standard ZigZag Auto Fibo Indicator Combined With A ZigZag Fibonacci Time Zone Indicator Which Has The Specified Levels Written In The Indicator Strategy TEXT FILE/DOCUMENT HOW DOES THE INDICATOR KNOW AN UPTREND MOVEMENT? If Price Hasn't Touched The 123.6% Level Of The Recent Static

Información sobre el proyecto

Presupuesto
30 - 50 USD
Para el ejecutor
27 - 45 USD
Plazo límite de ejecución
de 1 a 7 día(s)