Code to Write Details of Last Consecutive Loss Trades into Global Variables

MQL4 Эксперты

Работа завершена

Время выполнения 1 час
Отзыв от заказчика
Completed to specification. Highly recommended.
Отзыв от исполнителя
Thank you very much! Nice customer!

Техническое задание


I require a code that creates a set of global variables that can be called by other parts of an EA that acheives the following:


Calculates the PIP values of the last consecutive loss trades

Calculates the NUMBER of last consecutive loss trades

Calculates the dollar amount of the last consecutive loss trades - dynamic based on the currency pair


Examples:

Trades at 0.1 Lots : -6, +10, -5, -5:   Outputs: 10 + X (Pips), 2 (Trades), -$10 (USD)

Trades at 0.1 Lots : -6, +10, -5:   Outputs: 5 + X (Pips), 1 (Trades), -$5 (USD)

Trades at 0.1 Lots : -6, +10:   Outputs: X (Pips), 0 (Trades), +10 (USD)

X is a PIP value that I can enter


I need two sets of files, 1 file that only contains the Pip and number of trades. The second file that contains the dollar value.

The code needs to be able to isolate an EA based on its Magic Number

Require the code as an MQ4 file, and needs to be clean and annotated.

I will need to insert this code into various different EA's, so the entire code apart from the declaration of the global variables needs to sit inside ONE function.

I will be testing the code, so will need to work regardless of the EA it sits in.


Thanks

Откликнулись

1
Разработчик 1
Оценка
(192)
Проекты
232
30%
Арбитраж
1
100% / 0%
Просрочено
9
4%
Свободен
2
Разработчик 2
Оценка
(879)
Проекты
1392
67%
Арбитраж
117
32% / 42%
Просрочено
215
15%
Свободен
3
Разработчик 3
Оценка
(343)
Проекты
362
70%
Арбитраж
4
100% / 0%
Просрочено
0
Загружен
4
Разработчик 4
Оценка
(37)
Проекты
37
24%
Арбитраж
0
Просрочено
0
Свободен
5
Разработчик 5
Оценка
(14)
Проекты
14
50%
Арбитраж
2
0% / 100%
Просрочено
0
Свободен
6
Разработчик 6
Оценка
(21)
Проекты
35
54%
Арбитраж
8
63% / 38%
Просрочено
1
3%
Свободен
7
Разработчик 7
Оценка
(143)
Проекты
255
35%
Арбитраж
12
25% / 58%
Просрочено
42
16%
Свободен
8
Разработчик 8
Оценка
(56)
Проекты
65
29%
Арбитраж
5
0% / 60%
Просрочено
1
2%
Работает
Похожие заказы
Hello, I want to make an EA based on SMC and a developer that is familiar with the concept and full understanding of this. Must have done similar jobs before and be able show it. I only want to work with developer that has good track record and is precise. Further information will be handed when contact is made. Developers that has zero rating will not be considered. Listed price is a base point. The project can also
EA DEJA FABRIQUE ? MODIFIER QUELQUE LIGNE POUR LE RENDRE RENTABLE /////////////////////++++++++++++++++++++++++++++++++++ EA AVEC UN SYTEME SIMPLE ; SEULEMENT A MODIFIER %%%%%%%%%%%%%%%%%% SI PERSONNE SACHANT CODER CORRECTEMENT , CE TRAVAIL EST POUR TOI
Trade methodology based on Red and Green lines entering Overbought / Oversold zone. Using confluence of Higher time frame, Moving Average a trade can enter when there is a strong slope angle. Market Base Line is used to determine overall market sentiment. This is designed to be an established trend scalping strategy on lower time frames. To be used initially on demo then real account when settings have been fine
There are six conditions in total . source code from an existing expert will be provided to aid the completion of this job . - Install the following by the Panel (copy paste form my existing Expert ) 1. Pips Lost : number of pips lost ( monthly reset ) 2. Pips Gained : number of pips gained ( monthly reset ) 3. Have a black background to avoid the
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function (A) Add Transform combine the 4 Expert Advisors into just 1 Expert Advisor, maintaining the individuality of each one Leave in extern (false) or (true)
Description: I am seeking an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 based on a specific trend-following strategy. The strategy includes precise risk management, advanced trade management features, and additional risk management tools. The EA should be adaptable to any timeframe on which it is attached. Below are the detailed requirements and parameters for the EA: Strategy
I need an EA trading frequently (HFT or something like), and it sould have some features below: 1、Have a clear trading logic 2、Have a good backtest result 3、Have a demonstrated benefitable result in a live account trading 4、Can avoid the news time period or not sensitive to news
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Hello, I am looking for a skilled developer to create an Expert Advisor (EA) for MT4. The EA should close an open trade automatically when a Golden or Death Cross occurs in the Alligator Indicator. Please let me know if you have experience with similar projects and how we can discuss the details further
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details

Информация о проекте

Бюджет
30+ USD
Исполнителю
27 USD
Сроки выполнения
до 3 дн.