EA that syncs an order table on local MySQL with MetaTrader - 30-50USD

MQL4 Experten Integration

Auftrag beendet

Ausführungszeit 7 Tage

Spezifikation

I have a table that I maintain in a MySQL database on my local machine.

This table has the following structure:

 

SYMBOL | BUYORSELL | STOPLOSS | COMMENT 

EURUSD | BUY           | 1.1111      | S00001 T123456

EURUSD | BUY           | 1.1111      | S00011 T98765 

...


The comment is the unique key. If row appears in this table you have to open a trade.

If on the next tick you can not find the corresponding row with this comment again it means the trade must be closed.

This EA I will attach to every symbol I want to trade. 


The EA will have 2 inputs: 

  • MaxEquityPercentagePerTrade (0-100): This is to calculate the position size. Every trade will have a stoploss. So based on the difference between the price and the stoploss you can calculate the position size based in a percentage of the total equity of the account. F.e. 5 will mean that when stop loss gets hit 5% of my equity will be gone.
  • MaxNumberOfTrades (0-...): This is the maximum number of trades that are allowed in the account. No new orders will be opened if this number is reached.


 

The code to generate the MySQL Database and table structure:

 CREATE DATABASE FOREX;


USE FOREX;


CREATE TABLE Orders

(

Symbol NVARCHAR(50), 

BuyOrSell NVARCHAR(10),

StopLoss NUMERIC(32,10), 

Comment NVARCHAR(1000)

);

Do not hesitate for further details if something is unclear..

 

Thank you 


 

Bewerbungen

1
Entwickler 1
Bewertung
(219)
Projekte
370
42%
Schlichtung
145
17% / 41%
Frist nicht eingehalten
124
34%
Frei
Veröffentlicht: 38 Beispiele
2
Entwickler 2
Bewertung
(28)
Projekte
36
17%
Schlichtung
2
50% / 50%
Frist nicht eingehalten
2
6%
Frei
3
Entwickler 3
Bewertung
(2)
Projekte
2
0%
Schlichtung
13
8% / 92%
Frist nicht eingehalten
1
50%
Frei
4
Entwickler 4
Bewertung
(453)
Projekte
566
26%
Schlichtung
24
42% / 38%
Frist nicht eingehalten
85
15%
Frei
Veröffentlicht: 6 Beispiele

Projektdetails

Budget
Ausführungsfristen
von 1 bis 10 Tag(e)