Login / Register
Add a review
Log in
Sign UP
[bws_google_captcha]
Excel to Orders for MT5

0.00

If you have lots of analyzed orders in Excel where need to be placed on MT5 , this script will be very handy and time saver for you.

All your orders are processed in seconds and your order’s results are written to an output file.

1. Prepare  .xls file and save it as

…MQL5\Files\Excel_to_Orders.csv

Input csv structure:

Input Sample:

Ref no (String);symbol (string);cmd (int);volume (double);price (double);slippage (int);stoploss (double);takeprofit (double);comment (string);magic (int);slPips (int);tpPips (int);stopLimit(double)

ref101;EURUSD;BUY;0.01;0;5;1.09;1.12;my eur comment;35600;200;200;

ref102;EURUSD;SELL;0.02;0;5;1.12;1.09;my eur comment;35601;300;300;

ref103;EURUSD;BUY_LIMIT;0.01;1.1;5;1.09;1.12;my eur comment;35602;400;400;

ref104;EURUSD;SELL_LIMIT;0.02;1.12;5;1.14;1.09;my eur comment;35603;500;500;

ref105;EURUSD;BUY_STOP;0.01;1.13;5;1.11;1.14;my eur comment;35604;600;600;

ref106;EURUSD;SELL_STOP;0.02;1.09;5;1.11;1.07;my eur comment;35605;700;700;

ref107;USDRUB;BUY;0.02;0;5;0;0;this ruble ;35606;10000;20000;

ref108;EURUSD;BUY_STOP_LIMIT;0.01;1.14430;5;0;0;my BUY_STOP_LIMIT;35607;0;0;1.1441

ref109;EURUSD;SELL_STOP_LIMIT;0.02;1.1411;5;0;0;my sell_STOP_LIMIT;35608;0;0;1.1414

Ref no (String);symbol (string);cmd (int);volume (double);price (double);slippage (int);stoploss (double);takeprofit (double);comment (string);magic (int);slPips (int);tpPips (int);stopLimit(double)

[spoiler title=”Read More…”]

ref101;EURUSD;BUY;0.01;0;5;1.09;1.12;my eur comment;35600;200;200;

ref102;EURUSD;SELL;0.02;0;5;1.12;1.09;my eur comment;35601;300;300;

ref103;EURUSD;BUY_LIMIT;0.01;1.1;5;1.09;1.12;my eur comment;35602;400;400;

ref104;EURUSD;SELL_LIMIT;0.02;1.12;5;1.14;1.09;my eur comment;35603;500;500;

ref105;EURUSD;BUY_STOP;0.01;1.13;5;1.11;1.14;my eur comment;35604;600;600;

ref106;EURUSD;SELL_STOP;0.02;1.09;5;1.11;1.07;my eur comment;35605;700;700;

ref107;USDRUB;BUY;0.02;0;5;0;0;this ruble ;35606;10000;20000;

ref108;EURUSD;BUY_STOP_LIMIT;0.01;1.14430;5;0;0;my BUY_STOP_LIMIT;35607;0;0;1.1441

ref109;EURUSD;SELL_STOP_LIMIT;0.02;1.1411;5;0;0;my sell_STOP_LIMIT;35608;0;0;1.1414

2. Run

Excel to Orders

script on any currently opened chart window in your terminal.

After initiating the script , your records are processed one by one and result .csv file is created in the same sub-directory of MT5

…MQL5\Files\Excel_to_Orders_Results.csv

Result csv structure:

Last 3 columns are appended at the end of your input record.

Output Sample:

Ref no (String);symbol (string);cmd (int);volume (double);price (double);slippage (int);stoploss (double);takeprofit (double);comment (string);magic (int);slPips (int);tpPips (int);stopLimit(double);Ticket (int);Error code (int);Error description (string)

ref101;EURUSD;BUY;0.01;0;5;1.09;1.12;my eur comment;35600;200;200;0;0;10016;Invalid stops

ref102;EURUSD;SELL;0.02;0;5;1.12;1.09;my eur comment;35601;300;300;0;0;10016;Invalid stops

ref103;EURUSD;BUY_LIMIT;0.01;1.1;5;1.09;1.12;my eur comment;35602;400;400;0;658439996;10009;Request executed

ref104;EURUSD;SELL_LIMIT;0.02;1.12;5;1.14;1.09;my eur comment;35603;500;500;0;0;10015;Invalid price

ref105;EURUSD;BUY_STOP;0.01;1.13;5;1.11;1.14;my eur comment;35604;600;600;0;0;10015;Invalid price

ref106;EURUSD;SELL_STOP;0.02;1.09;5;1.11;1.07;my eur comment;35605;700;700;0;658439997;10009;Request executed

ref107;USDRUB;BUY;0.02;0;5;0;0;this ruble ;35606;10000;20000;0;658440002;10009;Request executed

ref108;EURUSD;BUY_STOP_LIMIT;0.01;1.1443;5;0;0;my BUY_STOP_LIMIT;35607;0;0;1.1441;658440009;10009;Request executed

ref109;EURUSD;SELL_STOP_LIMIT;0.02;1.1411;5;0;0;my sell_STOP_LIMIT;35608;0;0;1.1414;658440014;10009;Request executed

Ref no (String);symbol (string);cmd (int);volume (double);price (double);slippage (int);stoploss (double);takeprofit (double);comment (string);magic (int);slPips (int);tpPips (int);stopLimit(double);Ticket (int);Error code (int);Error description (string)

ref101;EURUSD;BUY;0.01;0;5;1.09;1.12;my eur comment;35600;200;200;0;0;10016;Invalid stops

ref102;EURUSD;SELL;0.02;0;5;1.12;1.09;my eur comment;35601;300;300;0;0;10016;Invalid stops

ref103;EURUSD;BUY_LIMIT;0.01;1.1;5;1.09;1.12;my eur comment;35602;400;400;0;658439996;10009;Request executed

ref104;EURUSD;SELL_LIMIT;0.02;1.12;5;1.14;1.09;my eur comment;35603;500;500;0;0;10015;Invalid price

ref105;EURUSD;BUY_STOP;0.01;1.13;5;1.11;1.14;my eur comment;35604;600;600;0;0;10015;Invalid price

ref106;EURUSD;SELL_STOP;0.02;1.09;5;1.11;1.07;my eur comment;35605;700;700;0;658439997;10009;Request executed

ref107;USDRUB;BUY;0.02;0;5;0;0;this ruble ;35606;10000;20000;0;658440002;10009;Request executed

ref108;EURUSD;BUY_STOP_LIMIT;0.01;1.1443;5;0;0;my BUY_STOP_LIMIT;35607;0;0;1.1441;658440009;10009;Request executed

ref109;EURUSD;SELL_STOP_LIMIT;0.02;1.1411;5;0;0;my sell_STOP_LIMIT;35608;0;0;1.1414;658440014;10009;Request executed

3. You may open your result file

…MQL5\Files\Excel_to_Orders_Results.csv

with excel to view the return codes of your order records.

Please report any bug issue or free of charge development request ([email protected]) upon your needs.

[/spoiler]

Add review
Reviews ( 0 ):