Excel to Orders
What is this script?
If you have a lot of orders, analyzed into Excel, which should be placed on the MT4, the script is very easy to use, and it saves you time.
All your orders are processed in a matter of seconds, and the results of your orders are recorded in the output file.
How does he work?
1. Prepare .xls file with 10 columns and save it as a
...MQL4 \ Files \ Excel_to_Orders.csv
The structure of the input csv file:
- Ref no (string) [ a unique serial number in any format. ]
- Symbol (string)
- Cmd (int) [ BUY (0), SELL (1), BUYLIMIT (2), SELLLIMIT (3), BUYSTOP (4), SELLSTOP (5) ]
- Volume (double)
- Price (double)
- Slippage (int)
- Stoploss (double)
- Takeprofit (double)
- Comment (string)
- Magic (int)
2. Run
Excel to Orders
script in any open a terminal window.
After initialization script csv-file in a subdirectory will be created MT4
...MQL4 \ Files \ Excel_to_Orders_Results.csv
The structure of the csv output file:
- Ref no (string)
- Symbol (string)
- Cmd (int)
- Volume (double)
- Price (double)
- Slippage (int)
- Stoploss (double)
- Takeprofit (double)
- Comment (string)
- Magic (int)
- Ticket (int)
- Error Code (int)
- Error Description (string)
The last three columns are added to the end of the input record.
3. You can open the resulting file
...MQL4 \ Files \ Excel_to_Orders_Results.csv
to Excel, to see the return codes recorded orders.
Please report any problems encountered or requests for completions (volkanyurci@gmail.com) when the need arises.
No comments:
Post a Comment