Enter and close orders in MT4, based on cells value in Excel spreadsheet

MQL4 In conversione

Lavoro terminato

Tempo di esecuzione 9 giorni

Specifiche

I need an EA that will enter and close a trade based on cells' value in micro-soft excel


For example, in the below spreadsheet, when column 'B' = Yes,a trade will be placed with the following attributes:

  • MT4 account to enter trade = Cell H5. If the trade needs to be entered in one MT4 instance, then H5 will contain 1 account number (e.g.12345678). If trades needs to be entered in multiple instance, then multiple account numbers separated by comma (e.g. 12345678, 87654321) will be in H5
  • Trade type = Buy, Sell, Buy Limit, Sell Limit, Buy Stop, Sell Stop according to cell H6
  • Currency pair to enter trade = Column A
  • Lot Size - Column C
  • Magic number = Column D
  • Price (for limit and stop order) = Column E

When the value in column 'B' change to "No", the trade of that currency pair is to be closed/deleted.

An example of the spreadsheet below:

1 A B C D E E
G
H
2  Ccy pair
Ok to trade now? Lot size Magic number Price


3 EURUSD Yes 0.01 123 100
Date/Time 12/09/2017 9:43
4 GBPUSD Yes 0.01 123 100
Hour of the day 9
5 AUDUSD Yes 0.01 123 100
Account number 12345678, 87654321
6 AUDJPY Yes
0.01 123 100
Trade to enter Buy, Sell, Buy Limit, Sell Limit, Buy Stop, Sell Stop
7 CADJPY No 0.01 123 100


8 AUDCAD No 0.01 123 100


9 AUDCHF No 0.01 123 100


10 CADCHF No 0.01 123 100


11 USDCHF No 0.01 123 100


12 NZDUSD No 0.01 123 100


13 CHFJPY No 0.01 123 100


14 USDCAD No 0.01 123 100


15 GBPJPY No 0.01 123 100


16 EURJPY No 0.01 123 100


17 EURAUD No 0.01 123 100


18 USDJPY No 0.01 123 100


19 NZDJPY No 0.01 123 100


20 EURCHF No 0.01 123 100


21 EURGBP No 0.01 123 100



Con risposta

1
Sviluppatore 1
Valutazioni
(54)
Progetti
64
42%
Arbitraggio
5
20% / 60%
In ritardo
4
6%
Gratuito
Pubblicati: 1 codice
2
Sviluppatore 2
Valutazioni
(64)
Progetti
144
46%
Arbitraggio
19
42% / 16%
In ritardo
32
22%
In elaborazione

Informazioni sul progetto

Budget
30 - 50 USD
Scadenze
da 1 a 5 giorno(i)