Script to list the drawdowns of open positions

MQL5 Skripte

Auftrag beendet

Ausführungszeit 2 Tage

Spezifikation

Summary

This function will extract a snapshot of the data needed to identify the drawdown of individual EA’s.

 

The idea is to use the standard Metatrader toolbox trade data to obtain a snapshot of the open profit or loss for each open position along with the magic number associated with the position.

 

Building up a series of these over time will give an idea of the drawdown experienced by individual EA’s.

 

The function will create a regularly produced CSV files and place them in the existing MLQ5 Shared Projects folder.

Requirements

 

Changing the frequency of how often the extract is run

 

The frequency of the intervals for creating the file should be a parameter that can be altered. 

 

Initially, this may be five minutes but could change.  A user interface is not required on the assumption that it will be pretty easy to edit that item in whatever code is provided. Just show me where it is located in the code.

 

Timing of when the extract run

The extract should run at regular intervals based on a parameter that I can access e.g. 5 minutes.

The standard time periods for Metatrader should be possible; M1, M5, M15, H1, H4, D1

 

Using five minuets, say, each run should start on the next exact five minute mark, the opening of the next M5 candle. If the run is set up at 13.06 then the next extract should be at 13.10.

 

M15 should start at the next quarter hour. If the run is set up at 13.06 then the next extract should be at the beginning of the next M15 candle - 13.15.

 

H1 should start on the next hour.  If the run is set up at 13.06 then the next extract should be at the beginning of the next H1 candle - 14.00.

 

H4 should start at the beginning of the next H4 candle etc.

 

 

File Name

Each file created should have a unique file name made up of Metatrader logon (Account number of the account, Date (format yyyymmdd), Broker time that the extract was performed (24 hour format hhmm)

 

An example of a file name

50796986

Account number

20230309

Date

1605

Broker time

 

 

 

The filename would look like this:

50796986202303091605

 

 

 

 


 

File content

File to contain values under the column headings from the trade tab of the toolbox.  The required columns are listed below and See example at the end of this section.

 

Note that there are two additional columns required:

A column should be added with the time of the file creation (Timestamp).  This column allows a time based analysis of the individual open positions.

 

A column should be added for the terminal login (not the hashed number created by MT5 for the data folder)

 

I will be combining different files from different accounts, so I need to know where the transactions originated!

 

File columns

Symbol

ticket

time[Entry]

type

volume

price[entry]

SL

TP

Price [at the time of the extract]

Value

Swap,

Profit

Magic

Comment

Terminal Login

Timestamp of report

 

The order of the columns or rows is not important if an existing function provides it in a different sequence.

 

e.g. Copied from a trade terminal but with the new time created column added. (see zip file attached)


 

 

File location

Write each file to an standard Metatrader folder for the terminal: MLQ5/shared projects. Using the naming requirement will mean that every file has a unique name.

 

 

Conclusion

Let me know what else you need or if you think there is a different way to do this.

 

 

Ian Fraser


Dateien:

Bewerbungen

1
Entwickler 1
Bewertung
(155)
Projekte
171
43%
Schlichtung
5
0% / 80%
Frist nicht eingehalten
8
5%
Arbeitet
2
Entwickler 2
Bewertung
(132)
Projekte
170
18%
Schlichtung
17
47% / 18%
Frist nicht eingehalten
0
Arbeitet
3
Entwickler 3
Bewertung
(8)
Projekte
9
22%
Schlichtung
0
Frist nicht eingehalten
0
Frei
Ähnliche Aufträge
1. **Timeframe and Liquidity:** Focus on the 5-minute timeframe for liquidity analysis.(timeframe for liquidity should be editble) 2. **Candlestick MSS:** Monitor 1-minute candlestick patterns for entry signals.(should be editble) 3. **Swing Points:** Identify swing points using the high and low of the last three candles.(ict swimg high and low) 4. **Sell Setup:** - Wait for a 5-minute candle to take out the swing
i am looking for experienced programmer to create indicator for me. i am willing to pay for the service. and if it works amazingly like i expected. i will tip more money
High Low intraday ticker to display the most recent high low of up to 40 stock symbols. As a stock makes an intraday high low it will populate at the top and so on. Regardless of chart that's display it will continue to track high lows of the 40 stocks inputed. The 40 stocks can by manually changed. A high will display as green with the time (hour:minute:second), symbol, and last price. A low will be displayed as red
Modify an existing Python bot to trade bollinger bands, with iqoption api Currently the bot strategy is wrong, I am limited in my knowledge here and hope to fix this Hope to work with more experience people out there in relation to iqoption api and python
I need an EA to automate Tradingview alerts on MT4 using webhook alerts. The bridge/connector should be python based GUI. Required features at a minimum Mapping Tradingview alert formats to MT4 Automating market, limit and stop orders with entry price, stop loss, multiple TPs and trailing stop Lot sizing - fixed/% of balance/fixed amount breakeven, partial close and trailing stop Mapping pair name prefixes/suffixes
hi guys, I have a script, that I have been struggling to work. most of the work is done, just final touch of an expert is needed. The script Is using Fibonacci and Pivot standard in its base. look forward to hear from an expert! Best regards Sina
I want to find a Developer to perform this work and settle payments in this Application. I undertake not to communicate with Applicants anywhere else except this Application, including third-party messengers, personal correspondence or emails. I understand that violators will be banned from publishing Orders in the Freelance service. I have read the Rules of using the Freelance service and accept them. I agree

Projektdetails

Budget
30+ USD
MwSt (23%): 6.9 USD
Insgesamt: 36.9 USD
Für die Entwickler
27 USD