Select last 30 orders in history with magic number 999999 MQL4

MQL4 Experten Skripte

Auftrag beendet

Ausführungszeit 3 Minuten
Bewertung des Kunden
Compliments to Ivand for his work. His work was quick, accurate for a reasonable price. He also helped me with the running of the script. Would definitely recommend him as a EA programmer to others.

Spezifikation

Hallo,

I want to select the last 30 orders form my EA with the magicnumber 999999  in MQL4. Currently my code is like this which doesnt account for the MagicNumber:

OrderSelect(OrdersHistoryTotal()-30,SELECT_BY_POS,MODE_HISTORY);  
   double G30 = OrderProfit();                                       if(G30 > 0) W ++;  
   if(G30 == 0) G30 = 0.0001; 
   if(G30 > 0) Wins = Wins + G30; 
   if(G30 < 0) Loss = Loss + G30;
   OrderSelect(OrdersHistoryTotal()-29,SELECT_BY_POS,MODE_HISTORY);  
   double G29 = OrderProfit();                                       if(G29 > 0) W ++; 
   if(G29 == 0) G29 = 0.0001; 
   if(G29 > 0) Wins = Wins + G29; 
   if(G29 < 0) Loss = Loss + G29;               
   OrderSelect(OrdersHistoryTotal()-28,SELECT_BY_POS,MODE_HISTORY);  
   double G28 = OrderProfit();                                       if(G28 > 0) W ++;        
   if(G28 == 0) G28 = 0.0001; 
   if(G28 > 0) Wins = Wins + G28; 
   if(G28 < 0) Loss = Loss + G28;     

 I want to select the last 30 orders from the ea with the magicnumber 999999 and than calculate the average winn and  average loss amount of the last 30 trades.

Can anybody help me?

Kind Regards

 

Rene  

Bewerbungen

1
Entwickler 1
Bewertung
(647)
Projekte
1295
67%
Schlichtung
84
26% / 49%
Frist nicht eingehalten
338
26%
Frei
2
Entwickler 2
Bewertung
(182)
Projekte
342
42%
Schlichtung
118
12% / 73%
Frist nicht eingehalten
104
30%
Frei
Veröffentlicht: 4 Beispiele
3
Entwickler 3
Bewertung
(2674)
Projekte
3412
68%
Schlichtung
77
48% / 14%
Frist nicht eingehalten
342
10%
Frei
Veröffentlicht: 1 Beispiel
4
Entwickler 4
Bewertung
(14)
Projekte
27
22%
Schlichtung
18
6% / 89%
Frist nicht eingehalten
8
30%
Frei
Veröffentlicht: 1 Beispiel
5
Entwickler 5
Bewertung
(618)
Projekte
1429
59%
Schlichtung
31
81% / 0%
Frist nicht eingehalten
10
1%
Frei
6
Entwickler 6
Bewertung
(88)
Projekte
143
39%
Schlichtung
21
19% / 48%
Frist nicht eingehalten
30
21%
Frei
7
Entwickler 7
Bewertung
(1931)
Projekte
3552
88%
Schlichtung
73
40% / 15%
Frist nicht eingehalten
268
8%
Frei
8
Entwickler 8
Bewertung
(16)
Projekte
39
69%
Schlichtung
2
0% / 50%
Frist nicht eingehalten
1
3%
Frei
9
Entwickler 9
Bewertung
(453)
Projekte
566
26%
Schlichtung
24
42% / 38%
Frist nicht eingehalten
85
15%
Frei
Veröffentlicht: 6 Beispiele
10
Entwickler 10
Bewertung
(174)
Projekte
233
61%
Schlichtung
3
33% / 33%
Frist nicht eingehalten
6
3%
Frei
Veröffentlicht: 1 Beispiel
11
Entwickler 11
Bewertung
(70)
Projekte
86
31%
Schlichtung
1
100% / 0%
Frist nicht eingehalten
1
1%
Frei
12
Entwickler 12
Bewertung
(12)
Projekte
13
31%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
1
8%
Frei
Veröffentlicht: 1 Beispiel
13
Entwickler 13
Bewertung
(47)
Projekte
140
49%
Schlichtung
9
56% / 0%
Frist nicht eingehalten
27
19%
Frei
14
Entwickler 14
Bewertung
(14)
Projekte
22
27%
Schlichtung
24
13% / 79%
Frist nicht eingehalten
6
27%
Frei
15
Entwickler 15
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
16
Entwickler 16
Bewertung
(64)
Projekte
144
46%
Schlichtung
20
40% / 20%
Frist nicht eingehalten
32
22%
Frei
Ähnliche Aufträge
Fvg order 50 - 300 USD
Strategy Objective Create a disciplined, rules‑driven trading framework that identifies high‑probability reversals during the Asia session by leveraging levels formed in the final hours of New York. The goal is consistent execution, controlled risk, and scalable automation. Core Approach Track and define the key price extremes set during late New York trading. Monitor Asia session behavior for liquidity sweeps beyond
Requirements Specification GoldV16 V0 – MT5 XAUUSD Netting EA 1. Platform: - MetaTrader 5 - MQL5 - XAUUSD - NETTING account 2. Position rule: - Only ONE XAUUSD position may be open at any time. - Fixed lot only. - No Martingale. - No automatic lot increase. 3. Stop Loss: - Stop Loss must be sent immediately when a trade opens. - Default SL distance: 1.00 USD in gold price. - SL distance must be adjustable in Inputs
MQL5 developer needed to code a macro-driven gold trading Expert Advisor for MetaTrader. Body: We have a documented macro-driven trading strategy for gold that needs to be converted into a working MetaTrader Expert Advisor. Experience integrating external data sources, such as economic calendar events or interest rate and dollar index data, into MQL5 is required. An N.D.A. must be signed before strategy details are
I’m looking for an experienced MQL5 developer to create an MT5 EA similar to Iron Range, mainly for BTCUSD. It should use a range-based entry strategy, support market and pending orders, fixed-lot and percentage-risk sizing, stop loss, take profit, break-even, trailing stop, spread protection, and daily loss or drawdown limits. It should also work with different brokers and include adjustable settings for
MACD + EMA 30 - 100 USD
J’ai fais un indicateur tradingview que j’aimerai adapter à MT5. celui ci indique une flèche pour des achats ou des ventes lorsque le prix atteint un niveau tracé auparavant par l’indicateur également. Les conditions sont les suivantes : timeframe 1 minute Buy Stop / Sell Stop sur le niveau tracé. SL placé sur la EMA 21 au moment du du déclenchement de l’ordre avec possibilité de le modifier. Le TP à 1.5R
I need someone who can create a Trading Bot/AI or Expert Advisor (EA) for MetaTrader 5 (MT5) based on my manual trading strategy. My strategy uses only two indicators: Envelope and Moving Average. What I need is for the EA to accurately follow my manual trading logic and strategy, while also respecting the exact settings and parameters that I use for both indicators. This is not a Martingale strategy or anything
I am looking for a developer experienced in EAs and MT5 optimization to help me optimize my trading robot to operate during the Asian Session as well. Currently, the EA is already optimized for the London and New York sessions. I also have a fully functional version that includes the Asian Session. The strategy and all logic required for Asian Session trading are already implemented. Therefore, there is no need to
i need someone that can make me an EA really easy with the martingala system?, I am looking for something that doesn't exceed 5 trades for the martingale, I think I did it, but it only works for propfirms, So i need to develop it on ninja trader I have identified a very very simple strategy but it only works on propfirms, with only two propfirm accounts, i absolutely need account A and account, And they have to open
Pro bot 35 - 200 USD
Should be able to trade for me when I need to trade and make few or no loses.should help me trade profitably while on the chart.Tge more profits,the more we play
The bot must be able to identify market structure ( trending , ranging and REVERSAL). Support and resistance breakout with a lot of volume and pullback to the key level and wait for confirmation to enter the trade. Only trades NY session. Uses proper risk management with SL (10 pips) and TP( 30 pips). The bot will only use the 5min timeframe for market structure and executing trades, incase of ranging it enters buys

Projektdetails

Budget
10 - 25 USD