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

MQL4 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 1 saat
Müşteri tarafından geri bildirim
Completed to specification. Highly recommended.
Geliştirici tarafından geri bildirim
Thank you very much! Nice customer!

İş Gereklilikleri


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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(191)
Projeler
232
30%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
9
4%
Ücretsiz
2
Geliştirici 2
Derecelendirme
(878)
Projeler
1390
67%
Arabuluculuk
117
32% / 42%
Süresi dolmuş
215
15%
Ücretsiz
3
Geliştirici 3
Derecelendirme
(311)
Projeler
332
70%
Arabuluculuk
4
100% / 0%
Süresi dolmuş
1
0%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(37)
Projeler
37
24%
Arabuluculuk
0
Süresi dolmuş
0
Ücretsiz
5
Geliştirici 5
Derecelendirme
(14)
Projeler
14
50%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
0
Ücretsiz
6
Geliştirici 6
Derecelendirme
(21)
Projeler
35
54%
Arabuluculuk
8
63% / 38%
Süresi dolmuş
1
3%
Ücretsiz
7
Geliştirici 7
Derecelendirme
(143)
Projeler
255
35%
Arabuluculuk
12
25% / 58%
Süresi dolmuş
42
16%
Ücretsiz
8
Geliştirici 8
Derecelendirme
(54)
Projeler
62
31%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
1
2%
Çalışıyor
Benzer siparişler
i want to buy an ea that can give me minium of 30% per month with low risk trading i want an ea that use stoploss i want ea that dont hedge
Hi! I am willing to pay for a paid or rental EA with good track record. I have to see results first, try on a demo. Just let me know if you need any information
I need a professional or expert who is a trader and also know about coding that can quote a profitable strategy and code the strategy for me in MT4 with my specification, If you are capable of doing this I will be glad to share my requirement with you to get started
Integration of Supply and Demand Zones from CSV: Develop functionality to read supply and demand zone data from a .CSV file. Define the structure of the CSV file for storing zone data (e.g., price levels, zone type). Implement a mechanism to parse the CSV file and extract relevant zone information. Dynamic Zone Detection: Integrate algorithms to dynamically identify supply and demand zones based on historical price
Need a tradin g robot 30 - 50 USD
I would like to create a robot (another version of a robot I already have) I currently have the source code but would like to have another robot that belongs to me but with different settings, if I provide you with the source code with all the settings are you able to remake me another robot with modifications? and if so what would be your price
邏輯交易EA,主要包括如下內容,(細節後談) 1. 網格繫統:可選:YES/NO. 如果:YES,設置:網格間隔,網格層數,同一個網格線上,可以加倉一次或多次. 2. 開倉:條件開倉,可選:YES/NO.(目前默認爲NO) 分爲市價開倉或者 STOP ORDER/ LIMIT ORDER,多單和空單的開倉設置,可以設置不同手數. 3. 加倉:分爲:固定手數,如:0.03,或末單累加:0.01,或:末單倍數如:1.5倍.多單和空單的加倉方法可以不同設置. 4. 移動止盈.(單獨移動,多/空方整體點數移動/或金額移動) 5. 平倉包括: A.多方/空方止盈線,和多方/空方止損線 (可以設置三條價格:每條選擇:平倉 1/3,1/2,或全部) B.單獨止盈/止損 (多方和空方可以設置不同的,)盈利點數或金額 整體止盈/止損.(多方和空方可以設置不同的,)盈利點數或金額. C.同向對衝平倉(多方獲利單對衝虧損單,空方獲利單對衝虧損單)
How are you today? We’re looking for a ctrader bot that can receive signals from tradingview and place orders on different ctrader accounts, so no strategy coding is required. Here are the details: https://www.loom.com/share/d8166c67a74f46c28920be9e131f8ec7?sid=bd2c6ff2-52e4-4355-b35f-f4fc1bfb0f3b&nbsp ; We would like to know from you what’s the most cost effective method to create this bot. PDF is also attached to
Hello I Need A decompiler that can help me Am looking for a professional that can decompile ea and get me source code iF YOU CAN HELP ME WITH DECOMPILE TO GET SOURCE CODE ONLY DM
Objectif de la modification : 1. Supprimer les sécurités spécifiques pour permettre la compilation avec n'importe quels identifiants de compte réel ou démo. 2. Corriger les erreurs présentes sur chaque ligne du code source. 3. Intégrer les filtres et les flèches d'achat et de vente déjà présents dans le programme existant. 4. Ajouter une fonctionnalité de trailing stop pour améliorer la
Hi there, can you create an addon for Ninja Trader that replicates the Level 2 window? See image attached. I am looking to change the row colours based on the size

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
to 3 gün