Creation of a "FOR" loop in array

MQL4 エキスパート C#

指定

//----------------------------------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.



応答済み

1
開発者 1
評価
(87)
プロジェクト
134
14%
仲裁
41
22% / 29%
期限切れ
14
10%
2
開発者 2
評価
(115)
プロジェクト
129
18%
仲裁
11
27% / 55%
期限切れ
4
3%
3
開発者 3
評価
(204)
プロジェクト
208
28%
仲裁
0
期限切れ
3
1%
仕事中
4
開発者 4
評価
(171)
プロジェクト
194
11%
仲裁
37
38% / 35%
期限切れ
5
3%
取り込み中
5
開発者 5
評価
(14)
プロジェクト
14
21%
仲裁
1
0% / 100%
期限切れ
1
7%
6
開発者 6
評価
(564)
プロジェクト
933
47%
仲裁
302
59% / 25%
期限切れ
125
13%
取り込み中
類似した注文
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
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
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
QuantumTrader 30 - 200 USD
Request for development of machine learning robots for MetaTrader 5 (MT5) **Description**: Willing to develop experience in programming trading robots using MQL5 language and can learn machine learning on MetaTrader 5 (MT5) platform. The robot should be able to implement a multidisciplinary strategy on a set of technical indicators and multiple rules. I need to develop the robots so that they can work in an
The goal is to develop a system that mirrors trade actions (Buy/Sell) from a CTrader demo account on Cronos Markets to multiple prop firm accounts on TradeLocker, ensuring accurate replication of trades while adjusting risk proportionally. I was wondering if you could help me with copy trading an EA’s action on Cronos markets (uses CTrader) into a prop firm account that I bought with TooOne Trader (uses TradeLocker
Hey Greeting Am in need of Tradingview Developer that can combine existing Tradingview indicator to develop a strategy based on my conditions The Source code of those Indicator is available with me. Kindly bid and let proceed with the project Thanks
Dear developer, I want a working code to close open and pending orders on IG.com through python. when applying send me a sample video of the code closing orders on IG.com should be delivered within 2 days (please let me know) Serious coders please

プロジェクト情報

予算
30+ USD
開発者用
27 USD