Quote:
|
Originally Posted by newdigital
RickD,
Thanks a lot for your script. It is very useful.
You said that we may use some of the functions of this script. But sorry I do not know up to now how to use these functions (to sort the orders by pairs etc). I know that I should attach the script to the chart and the report will wait for me in /file folder. But how to use all the options of this script?
|
1. Sorting.
Sorting bases on SortBy[] and SortBy2[] arrays.
You can find SortBy arrays at the beginning of my script.
Example:
1)
int SortBy[] = {BY_OPENTIME};
The script will sort all the orders by OPENTIME column.
The order is ascending by default.
2)
int SortBy[] = {BY_SYMBOL, BY_PROFIT};
int SortBy2[] = {ASK, DESK}; (Sorry for my misprint, should be DESC)
No comment
Use following predefined constants:
BY_TICKET
BY_OPENTIME
BY_TYPE
BY_LOTS
BY_SYMBOL
BY_OPENPRICE
BY_SL
BY_TP
BY_CLOSETIME
BY_CLOSEPRICE
BY_COMMISSION
BY_SWAP
BY_PROFIT
BY_COMMENT