Creation of a "FOR" loop in array

MQL4 Experts C#

Specification

//----------------------------------ENGLISH
Description : for loop that selects and manages the data under array and returns 1 openorder() according to the input. 
extern int Nomber_trade = 3; ( Max 5 )  




Calculates 1 : 
If Nomber_trade == 3 && "MagicNumber" then we select the first 3 orders and do the average to return 1 value. 

if (Trade_number == 1) Trade 1 in "Arrayname"[0];
                       Trade 2 in "Arrayname"[1]; 
                       Trade 3 in "Arrayname"[2];
                       Trade 4 in "Arrayname"[3];
                       Trade 5 in "Arrayname"[4];
                       

if (Number_trade == 3) Trade 1,2,3 in "Arrayname"[0];
                       Trade 4,5,6 in "Arrayname"[1]; 
                       Trade 7,8,9 in "Arrayname"[2];
                       Trade 10,11,12 in "Arrayname"[3];
                       Trade 13,14,15 in "Arrayname"[4];
                       


Calculates 2 :
Obviously if Nomber_trade > 1 it will not be able to return several openorder() so it will calculate the average of the openorder().

if (Nomber_trade==1) "Arrayname"[0]= OpenOrder()1 / Nomber_Trade ;
if (Nomber_trade==3) "Arrayname"[0]= OpenOrder()1 + OpenOrder()2 + OpenOrder()3 / Nomber_Trade ; 


We will then receive 1 value which is the average of the openorder().  

Obviously the loop must be as optimized as possible. I have a reference for creating a loop if you don't know how to start.

https://www.mql5.com/en/forum/338132




//---------------------------------------FRENCH


Description : boucle for qui sélectionne et gère les données sous tableaux array et renvoi 1 openorder() en fonction du input. 

extern int Nomber_trade = 3; ( Max 5 )  





Calcule 1 : 

Si Nomber_trade == 3 && "MagicNumber" alors nous sélectionnons les 3 premiers ordres et fais la moyenne pour renvoyer 1 valeur. 


if (Nombre_trade == 1) Trade 1 dans "Arrayname"[0];

                       Trade 2 dans "Arrayname"[1]; 

                       Trade 3 dans "Arrayname"[2];

                       Trade 4 dans "Arrayname"[3];

                       Trade 5 dans "Arrayname"[4];

                       


if (Nombre_trade == 3) Trade 1,2,3 dans "Arrayname"[0];

                       Trade 4,5,6 dans "Arrayname"[1]; 

                       Trade 7,8,9 dans "Arrayname"[2];

                       Trade 10,11,12 dans "Arrayname"[3];

                       Trade 13,14,15 dans "Arrayname"[4];

                       



Calcule 2 :

Evidement si Nomber_trade > 1 il ne pourra pas renvoyer plusieurs openorder() alors il va calculer la moyenne des openorder().


if (Nomber_trade==1) "Arrayname"[0]= OpenOrder()1 / Nomber_Trade ;

if (Nomber_trade==3) "Arrayname"[0]= OpenOrder()1 + OpenOrder()2 + OpenOrder()3 / Nomber_Trade ; 



Nous recevrons alors 1 valeur qui est donc la moyenne des openorder().  


Evidement la boucle doit être la plus optimiser possible. j'ai une reference de création de boucle si vous ne saviez pas comment commencer. 

https://www.mql5.com/en/forum/338132




ATTENTION : The code of our EA is not provided you should test it on your EA.



Responded

1
Developer 1
Rating
(87)
Projects
134
14%
Arbitration
41
22% / 29%
Overdue
14
10%
Free
2
Developer 2
Rating
(115)
Projects
129
18%
Arbitration
11
27% / 55%
Overdue
4
3%
Free
3
Developer 3
Rating
(204)
Projects
209
28%
Arbitration
0
Overdue
3
1%
Free
4
Developer 4
Rating
(171)
Projects
194
11%
Arbitration
37
38% / 35%
Overdue
5
3%
Loaded
5
Developer 5
Rating
(14)
Projects
14
21%
Arbitration
1
0% / 100%
Overdue
1
7%
Free
6
Developer 6
Rating
(564)
Projects
933
47%
Arbitration
302
59% / 25%
Overdue
125
13%
Loaded
Similar orders
EA MT5 SNR 30 - 100 USD
I need a developer who can work with quickly & details. make an EA MT5 Classic Support aNd Resistance multi time frame marking single Classic support and resistance support type A and Resistance type V make an alert pop-up
It is using EMA/SMA for triggers of long or short (green long/red short) and the line above or below is the stop loss, profit triggers would need to figure out or allow it until next trigger. Already in thinkscript And add parameters
A “grid” display style like the attached image. User can choose up to 3 EMA’s to monitor on up to 6 Time Frames. If the EMA slope is greater than 0 = Green If the EMA slope is less than 0 = Red If the EMA slope is 0 = Black The grid should be customizable on it’s size, colors, and placement on the chart. Each EMA should update per tick. A label at the top of the grid should read “SLOPES” Indicator 2: A “grid” display
Requirement: 1. Convert Pivot source code .mq4 to Sierra Chart mq4 source code is provided .mq4 as attached .mq4 2. upon conversion to add a button code on Sierra chart .cpp to allow display/hide the pivot line in Sierra Chart ---- *no need alert, make it light without any alert, just a button to display/hide pivot line will do :) to continue, pivot font text also no need I"ve mark with red cross to remove see
I have 2 (indicators) I coded and I use on Tradingview I just need converted to use on Ninjatrader i will be looking for great developer to bid for it and for more details
Hello, I'm seeking a freelancer with access to a ready-made server solution for an educational forex project. Requirements: Ability to control or manipulate live or historical trading data. Platform to execute simulated trades with exaggerated outcomes. Tools for real-time trade simulation (white-label or virtual dealer solutions). If you have a suitable server or can help me find one, please reach out with details
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 there!! I need a professional ninjatrader developer who can code my specifications to an EA .kindly bid and all the necessary informations will be sent via chat box..Thank you
Hello. I would like to get a TOS script converted to Tradingview for my alerts. I’m haven’t a hard time getting my entry point because the script does not fire off alerts on thinkorswim. I will send the script so you can see if it’s possible
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

Project information

Budget
30+ USD
For the developer
27 USD