NOTE: I have left Forex Factory, so don't expect replies to your posts. You can find an index to all my indicators and posts here.
Trades History indicators: Terms and Conditions
All code is supplied FREE of charge. It may NOT be sold or distributed commercially. Unless otherwise shown, no source code is available.
Software is offered on an 'as is' basis. I'm not offering a programming or troubleshooting service.
There is no guarantee that the software is fit for purpose, or free of errors. Download and use the indicator(s) at your own risk; I accept no liability for computer damage or financial losses.
___________________________
1. Trades History
This indicator simply takes the trades displayed in MT4's Terminal and plots them on the chart:
Entry = white line
SL = red line (if the SL was trailed, the line represents the price the SL was at, when the trade was closed)
TP = green line
Trade exit = diagonal green line if a profitable trade; diagonal red line if loss. Shows the candle and price of both entry and exit.
Set ShowOrderTypes to
C to display closed orders only,
O to display open orders only,
OC to show both open and closed orders,
OCP to show open, closed and pending orders,
etc.
If you don't want any of EntrySettings, ExitProfitSettings, ExitLossSettings, SLSettings, TPSettings lines to be plotted, set them to blank/empty. Otherwise the 3 required entries are Color, Width, Style, separated by commas.
If you don't want an item (Price, Pips, Amount, Percent, etc) to be displayed, set its Format parameter to (uppercase) B
More info on the format masks here.
EquityCalcBasis affects the Percent Return and Risk, which may be calculated as a % of current Balance, Equity or Free Margin.
To display the P/L text, you must press F8 and then check MT4's 'Show object descriptions' ON (see screenshot below). Otherwise the P/L text simply displays in a help 'bubble' as you move the mouse cursor over the object (line).
For obvious reasons, only trades matching the current chart's pair will be plotted. Simply toggle to a different pair, and the trades for that pair will automatically be plotted.
[NOTE: if you prefer, you can try pips4life's Order History indicator here.]
2. Trades History from CSV
This indicator does exactly the same, except that it reads the trade data from a CSV file, whose name you specify, instead of the Terminal, and plots them on the chart.
If (for example) you have another trader's DetailedStatement.html file, you can load it into Excel, and save it as a CSV file in the ..../MQL4/Files folder. Then the indicator will plot all of the trades in that file on the chart.
FieldDelimiter is the separator character between the field in the CSV file.
DateTimeFormat is the format of any date/time fields in the file, so that the indicator can translate the text into a MT4 date/time.
FieldXlateTable is the order in which the fields appear in the CSV row/line:
0 = order number
1 = order open time
2 = order type
3 = order size (number of lots)
4 = order symbol ID
5 = order open price
6 = SL
7 = TP
8 = order close time
9 = order close price
10 = commission
11 = swap
12 = profit/loss
13 = comment
14 = magic number
20 = ignore the field
For example: 20,0,1,2, .... means "ignore the first field in the line, the second field is the order number, the third field is the open time, the fourth field is the order type, etc"
Installation
1. Download the attached files into the ..../MQL4/Indicators folder.
NOTE: These indicators were written using MetaEditor/compiler build 509. If you want the MQ4 source to compile/run without errors, you must do this first. Otherwise, download only the EX4 files.
2. Load MT4's Navigator, right click and then select 'Refresh'. Or simply restart MT4.
Trades History indicators: Terms and Conditions
All code is supplied FREE of charge. It may NOT be sold or distributed commercially. Unless otherwise shown, no source code is available.
Software is offered on an 'as is' basis. I'm not offering a programming or troubleshooting service.
There is no guarantee that the software is fit for purpose, or free of errors. Download and use the indicator(s) at your own risk; I accept no liability for computer damage or financial losses.
___________________________
1. Trades History
This indicator simply takes the trades displayed in MT4's Terminal and plots them on the chart:
Entry = white line
SL = red line (if the SL was trailed, the line represents the price the SL was at, when the trade was closed)
TP = green line
Trade exit = diagonal green line if a profitable trade; diagonal red line if loss. Shows the candle and price of both entry and exit.
Set ShowOrderTypes to
C to display closed orders only,
O to display open orders only,
OC to show both open and closed orders,
OCP to show open, closed and pending orders,
etc.
If you don't want any of EntrySettings, ExitProfitSettings, ExitLossSettings, SLSettings, TPSettings lines to be plotted, set them to blank/empty. Otherwise the 3 required entries are Color, Width, Style, separated by commas.
If you don't want an item (Price, Pips, Amount, Percent, etc) to be displayed, set its Format parameter to (uppercase) B
More info on the format masks here.
EquityCalcBasis affects the Percent Return and Risk, which may be calculated as a % of current Balance, Equity or Free Margin.
To display the P/L text, you must press F8 and then check MT4's 'Show object descriptions' ON (see screenshot below). Otherwise the P/L text simply displays in a help 'bubble' as you move the mouse cursor over the object (line).
For obvious reasons, only trades matching the current chart's pair will be plotted. Simply toggle to a different pair, and the trades for that pair will automatically be plotted.
[NOTE: if you prefer, you can try pips4life's Order History indicator here.]
2. Trades History from CSV
This indicator does exactly the same, except that it reads the trade data from a CSV file, whose name you specify, instead of the Terminal, and plots them on the chart.
If (for example) you have another trader's DetailedStatement.html file, you can load it into Excel, and save it as a CSV file in the ..../MQL4/Files folder. Then the indicator will plot all of the trades in that file on the chart.
FieldDelimiter is the separator character between the field in the CSV file.
DateTimeFormat is the format of any date/time fields in the file, so that the indicator can translate the text into a MT4 date/time.
FieldXlateTable is the order in which the fields appear in the CSV row/line:
0 = order number
1 = order open time
2 = order type
3 = order size (number of lots)
4 = order symbol ID
5 = order open price
6 = SL
7 = TP
8 = order close time
9 = order close price
10 = commission
11 = swap
12 = profit/loss
13 = comment
14 = magic number
20 = ignore the field
For example: 20,0,1,2, .... means "ignore the first field in the line, the second field is the order number, the third field is the open time, the fourth field is the order type, etc"
Installation
1. Download the attached files into the ..../MQL4/Indicators folder.
NOTE: These indicators were written using MetaEditor/compiler build 509. If you want the MQ4 source to compile/run without errors, you must do this first. Otherwise, download only the EX4 files.
2. Load MT4's Navigator, right click and then select 'Refresh'. Or simply restart MT4.
Attached File(s)
Trades History.ex4
33 KB
|
2,714 downloads
|
Uploaded Nov 15, 2017 1:49pm
Trades History from CSV.ex4
39 KB
|
1,284 downloads
|
Uploaded Nov 15, 2017 1:49pm
Trades History.mq4
11 KB
|
2,584 downloads
|
Uploaded Nov 15, 2017 1:49pm
Trades History from CSV.mq4
13 KB
|
1,429 downloads
|
Uploaded Nov 15, 2017 1:49pm