İş tamamlandı
![](https://c.mql5.com/i/avatar/avatar_na2.png)
İş Gereklilikleri
I want to create an EA that read the csv file.
I got the csv file that update every mins.
File location : C:\Users\Administrator\AppData\Roaming\MetaQuotes\Terminal\010E047102812FC0C18890992854220E\MQL5\Files
File example
3/27/2024 13:05:50,BUY,XAUUSD,M15
3/27/2024 13:05:51,SELL,XAUUSD,M15
3/27/2024 13:26:00,SELL,XAUUSD,M15
3/27/2024 13:32:50,SELL,XAUUSD,M15
3/27/2024 13:56:51,SELL,XAUUSD,M15
3/27/2024 14:06:51,BUY,XAUUSD,M15
3/27/2024 14:32:51,SELL,XAUUSD,M15
3/27/2024 14:46:51,BUY,XAUUSD,M15
3/27/2024 15:26:51,SELL,XAUUSD,M15
3/27/2024 16:03:00,BUY,XAUUSD,M15
3/27/2024 16:30:51,SELL,XAUUSD,M15
3/27/2024 17:35:52,SELL,XAUUSD,M15
3/27/2024 17:57:51,BUY,XAUUSD,M15
3/27/2024 18:00:52,SELL,XAUUSD,M15
3/27/2024 18:21:51,BUY,XAUUSD,M15
So I want to have an EA that meet the conditions below:
1. read the file every second to see the new signal
- Each row show BUY/SELL, Pair, TimeFrame. EA will create other for that pair and buy or sell.
- No duplicated order, mean if the order already created for this line, no created any more.
- I can configure the slot , TP/SL based on Timeframe, example if timeframe = M15, slot is : 0.1, TP: 200, ST: 200
- The comment format is [pair] [ timeframe].
The configuration will be
.....XAUUSD.....
Time frame: M15
Slot:
TP:
SL:
Time Frame: H1
Slot:
TP:
SL:
....USOIL:......
Time frame: M15
Slot:
TP
SL
Time Frame: H1
Slot:
TP:
SL:
....EURUSD:......
Time frame: M15
Slot:
TP
SL
Time Frame: H1
Slot:
TP:
SL:
The sample CSV is in attachment