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

MQL4 Esperti

Lavoro terminato

Tempo di esecuzione 1 ora
Feedback del cliente
Completed to specification. Highly recommended.
Feedback del dipendente
Thank you very much! Nice customer!

Specifiche


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

Con risposta

1
Sviluppatore 1
Valutazioni
(192)
Progetti
232
30%
Arbitraggio
1
100% / 0%
In ritardo
9
4%
Gratuito
2
Sviluppatore 2
Valutazioni
(878)
Progetti
1391
67%
Arbitraggio
117
32% / 42%
In ritardo
215
15%
Gratuito
3
Sviluppatore 3
Valutazioni
(333)
Progetti
352
71%
Arbitraggio
4
100% / 0%
In ritardo
1
0%
In elaborazione
4
Sviluppatore 4
Valutazioni
(37)
Progetti
37
24%
Arbitraggio
0
In ritardo
0
Gratuito
5
Sviluppatore 5
Valutazioni
(14)
Progetti
14
50%
Arbitraggio
2
0% / 100%
In ritardo
0
Gratuito
6
Sviluppatore 6
Valutazioni
(21)
Progetti
35
54%
Arbitraggio
8
63% / 38%
In ritardo
1
3%
Gratuito
7
Sviluppatore 7
Valutazioni
(143)
Progetti
255
35%
Arbitraggio
12
25% / 58%
In ritardo
42
16%
Gratuito
8
Sviluppatore 8
Valutazioni
(55)
Progetti
64
30%
Arbitraggio
4
0% / 50%
In ritardo
1
2%
In elaborazione
Ordini simili
Hi there, I currently have a scalping strategy based of 3 thrid party indicators that I would like automated. This would help me with running the strategy through the strategy tester. Two of the indicators dont have iCustom functionality to pull the data in, so another way would have to be devised. The strategy incorpates trading activity, sentiment in the for of the ratio of traders in profit, and a third techincal
Hi, I have a Live Data feature for my trading accounts that lets me check details like total open positions, number of lots, profits, etc. I need someone to add the number of pending orders to this live data. This is important for me to ensure that all accounts have the same number of pending orders, since I use a copy trading system. Also, there is a website where I check all the data. In this case, you would need
OK I just need 1 MOD Who can do it free There is a (Reciever EA) that receives signals from a (Sender EA) I need to ADD one mod It may even look like the option/signal is there= Ignore it Coding was wrong on that part This is simple The option in the Reicver EA will Be called "Open Copy Live" with the option to Set to True or False When set to true the Reicver EA will Watch
Hi there, I need a very highly skilled mt4 programmer to code and design an EA from scratch. The logic of the EA will be discussed with you in comments section, only reach out if you can code perfectly for mt4 using MQL4 coding solutions language, EA must be able to run well without any problems and work according to the logic thanks
I came across an indicator that's perfectly good in catching spikes in boom amd crash but i would want it to be modified and to improve accuracy As a professional you will have to go through the indicator and explain to me the strategy with which the indicator was buid and tell me the possibility of improving it better
### Summary of EA Requirements 1. **Time Period**: - The EA should operate on the H4 timeframe. 2. **RelicusRoad MACD v2 Indicator**: - **Parameters**: - Fast EMA Period: 12 - Fast EMA Type: Close price - Slow EMA Period: 24 - Slow EMA Type: Close price - Signal SMA Period: 9 - The EA should use this indicator to determine the crossover condition between the MACD line and the signal line. 3
An EA that executes when the 21 and 55 SMA Cross on certain time frame also the EA will understand supply and demand levels and executes when price reacts on this levels specified and target/stoploss levels will be predetermined...also the robot will also comprise stochastic oscillator
Ind V5 TV Strategy Requirements: Instruments: Forex pairs, Crypto and Stocks across exchanges TimeFrame: Multi-Time Frame comparisons, details below Indicators: Ichimoku Cloud, ATR & Choppiness Index Trade times: First Order: Day of Week Start Time, Day of Week First Order time, Day of Week Last Order Time and Day of Week Square Off Time Intraday TF: 1 min, 3 mins, 9 mins, 27 mins and 81 mins Position Size (Lots)
I want this EA in mql4. The two indicators are written in pinescript Developer should please understand it to develop the EA. One of the indicator will be used as direction and the other for entry. The should have code that it can be used for( only one PC and an expiration date. ; this the developer should show me how to adjust it, so that I can adjust to my preference). Parameters:number of trades.lotsize, SL pips
I need a robot for forex trading~~The way the robot should work is that when I put it into a 5 minute chart, the chart will show 15 minutes, one hour, Regardless of whether they are buying or selling, they must buy or sell in the same color at the same time~~~ Use the following indicators: HalfTrend 1 & alerts mtf Trafficlight indicator.MQ4 When placed into a 5 minute chart ~ the chart will show 15 minutes, one

Informazioni sul progetto

Budget
30+ USD
Per lo sviluppatore
27 USD
Scadenze
a 3 giorno(i)