Need MQL4 formulas to gather statistics of a magic number

Specification

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%

 

Responded

1
Developer 1
Rating
(878)
Projects
1390
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Free
2
Developer 2
Rating
(22)
Projects
25
4%
Arbitration
0
Overdue
5
20%
Free
3
Developer 3
Rating
(49)
Projects
77
43%
Arbitration
6
33% / 50%
Overdue
22
29%
Free
4
Developer 4
Rating
(28)
Projects
30
63%
Arbitration
0
Overdue
4
13%
Free
Similar orders
Dear colleagues, I have a small request for development. It is required to develop an indicator to display the 1-2-3 pattern. Standard strategy format for the indicator. Line display, separate line buffers for long and short signals. Arrow entry point. Separate input buffers for long and short signals, that is, separate arrows. Marks of TP and SL levels at entry point. The indicator should analyze the selected
Please convert the TradingView strategy Pine Script into an MT5 Expert Advisor (EA) auto trader. (I'll provide pine script code) The EA should be based on identifying order blocks and imbalances. Trades should trigger whenever there's a wick candle break in an imbalance area or within an order block area
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it
Требуется дописать условия постепенного закрытия позиций для готового советника. Есть готовый советник для МТ4 с простым условием для ТР. ТР= n x SL Требуется написать условие постепенного выхода из сделки. 1. TP 1 ____% от начальной позиции = ___х SL TP 2 ____% от начальной позиции = ___х SL TP 3 ____% от начальной позиции = ___х SL TP 4 ____% от начальной позиции = ___х SL TP 5 ____% от
Hello everyone, I needed an expert programmer that can help me convert my mt4 to tradingview pinescript, Please Note that I only have $10 to get this done for now, But I still have more projects in front for you, I have a particular code I will like to make some changes in this, and for this one, I need it done in a day, it is a small script and for it to be more comfortable, we can make use of c r y p t o for the p
Hey Greetings. Am in need of a developer with experience in Tradingview that have successfully developed a profitable strategy for tradingview . I willing to buy already made profitable strategy for tradingview. If you have one or had develop some . Kindly apply for the job and let discuss about the price and timeline. Thanks
Hello, everyone here, I kinda need help of a professional programmer that can convert mt4 indicator into tradingview indicator, there are still more projects in the futures I will need him/her to complete for me, but this is the first ime and I will pay $20 for this project I need this really fast, I need to start working
Ciao, le caratteristiche del mio sistema di trading, sono le seguenti. In allegato il segnale di ingresso a mercato che l'expert dovrà fare su un time frame D1 o W1. Gli asset sono 28 e il segnale sarà BUY o SELL nella direzione del trend. Lavoro con leva 1/500 e ogni volta che l'expert entrerà a mercato, ho la necessità di generare una griglia a MARTINGALA di supporto alla direzione del trend. La gestione delle
Hey greetings . Am in need of a Developer that can Create me tradingview indicator based on my requirements. Kindly bid for the job if you are an expert in tradingview
I have a script completely up and running on MT5 and I want to convert it to work in NINJATRADER 8 LEAVE JOB PRICE, JOB RUN TIME, YEARS OF EXPERIENCE- tengo un script completamente listo y funcionando en mt5 y deseo convertilo para que funcione en NINJATRADER 8 DEJAR PRECIO DEL TRABAJO, TIEMPO DE EJECUCION DEL TRABAJO, AÑOS DE EXPERIENCIA-

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
from 1 to 7 day(s)