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%
Libre
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
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
My idea _Anna. 50+ USD
I'm looking for a strategy where I can specify two points, such as Point A and Point B, which could be based on today's high/low or yesterday’s high/low, etc. I should have the option to define these points. The system should execute a buy order when the price goes above Point A, with the ability to set a target in percentage or points, as well as a stop-loss. Similarly, when the price drops below Point B, it should
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 Uptrend Zig Zag Fibo Retracement Tool Then The Indicator Knows That The Market Is In An Uptrend And
My requirements are the following. I am ordering, I need an expert consultant on EA matters and an indicator in the trade pairs of XAUUSD and XAGUSD, we also need powerful robots for changing prices in the market. the market conditions, i.e. flexibility, then the business should be beneficial for all I need high and low line python line position to work thank you
Hello programmers, I’m looking only for veteran programmers with profound knowledge and experience in strategy optimization to improve my EA. The backtests are incredible, even with REAL TICKS of 100% quality Dukascopy data, but real results are quite disappointing on my specific brokerage. I would really love to adapt the EA so that back testing results and forward testing can better match. The strategy uses a
hello, I need quick help with ninjatrader tool, market replay is not updating candles on chart, even though time is updating on playback window. I need someone who can help remotely to see what is issue. are you available

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)