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

MQL4 Experts

Job finished

Execution time 1 hour
Feedback from customer
Completed to specification. Highly recommended.
Feedback from employee
Thank you very much! Nice customer!

Specification


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

Responded

1
Developer 1
Rating
(191)
Projects
232
30%
Arbitration
1
100% / 0%
Overdue
9
4%
Free
2
Developer 2
Rating
(878)
Projects
1390
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Free
3
Developer 3
Rating
(306)
Projects
327
70%
Arbitration
4
100% / 0%
Overdue
1
0%
Loaded
4
Developer 4
Rating
(37)
Projects
37
24%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(14)
Projects
14
50%
Arbitration
2
0% / 100%
Overdue
0
Free
6
Developer 6
Rating
(21)
Projects
35
54%
Arbitration
8
63% / 38%
Overdue
1
3%
Free
7
Developer 7
Rating
(143)
Projects
255
35%
Arbitration
12
25% / 58%
Overdue
42
16%
Free
8
Developer 8
Rating
(54)
Projects
62
31%
Arbitration
4
0% / 50%
Overdue
1
2%
Free
Similar orders
Hello I am looking for highly profitable bot or many bots, already tested. Crypto Bot like arbitrage bot or similair. Highest ROI possible. But, The bot must be (risk free / Zero risk/no loss /Zero loss) And, The bot must have some kind of proof for daily or weekly return ROI. I need to see the ROI with my eyes on screen shot or video. Other proof can be myfxbook, or backtesting, or trial data or live trading data
Hi, I have a trading view indicator see below, and I like to have a bot created or connected via trading view connector to place buy and sell trades when the color changes from green to red, this will be from 15 minute time frame to 1 hour time frame, which the bot will operate
Looking for a developer to create an MT4 indicator and an EA / Robot. Indicator-based strategy consisting of several moving averages, PSAR Indicator and Pinescript indicator called Coral Trend Indicator by LazyBear (pinescript source code will be provided and will need converting to MT4 code - 34 lines of code). Strategy to be an intra-day trading period on 5-minute timeframe for the European session but “Trading”
Modify EA 30+ USD
please make it work so the EA places the Trade once the indicators are on the same direction. say No3 SELL signal is showing but the trend is BUY, so once the trend changes to SELL then EA places the trade. like wise with MACD ZZ Level - Enable / Disable zTrend - Enable / Disable MACD - Enable / Disable also a Smart TP/SL (Enable/Disable) feature = for ones when the trend changes, then EA uses this indicator signal
Hi, I need a progrmmer who can build an EA based on Currency strength indicator brought from MQL5 website, some body already build an alert indicator based on that indicator, now i want to build an EA based on that alerts. Details of EA will be provided in specifications. If interested then reply me back asap. thanks
Kindly check my strtategy and let me know if you can handle it explaining howyou can implement this strategy into Ninja script Conditions/edits - Time session option custom, (we want to trade only from 7:00 - 8:00 am and 11:00 am to 12:00 pm) - Option - Limit one setup per time session - Stop loss at bottom of order block if long, stop loss at top of order block if short. Use order block that we are using on
Create Order Block Indictor same as the indicator i attached. 1. Buy and Sell order block with arrow 2. indicator must not repaint 3. indicator must have setting to manage order block. Order must appear in the same places as our order block indicator.... if you have workable send to me let test it
Hello, you can work with me for sure, but here's to work with an experience coder who already know the concept of xBest EA, I think if I am opportune to discuss my trading needs with him or her that already knows how xBest strategy work, that will make the process more faster and saved me from time waster, because if you know how xBest EA works as a coder, that mean you are the best fit for my project, I have this EA
i am currently in need of a multi currency EA.i want the EA to be able to read data from different symbols whenever a trade occur on that symbol,the EA will be able to read the direction of the trade and the profit or loss of that particular pair and display it on my panel.the EA must be able to to combine all the trades that were taken from different symbols and display it on the panel,if you are capable of such it
I have an EA which i got from a friend of mine and it is a fantastic tool i use to trade the markets. It's fully automatic opens, closes trades etc. My only issue is that to run strategy testing and optimizations MT4 is so frkn slow! MT5 is leaps and bounds better for testing so would like to literally convert this EA from MT4 installable exe to MT5 installable exe so i can run it on MT5. Obviously i do not have the

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 3 day(s)