1. Trades History

This indior only takes the trades exhibited in MT4's Terminal and plots them onto the chart:

Entry = white line
SL = red line (when the SL was trailed, the line represents the price the SL was in, once the trade was shut)
TP = green line
Trade depart = diagonal green line in case a profitable commerce; diagonal red line if loss. Shows the candle and price of the entry and exit.

Set ShowOrderTypes into
C to exhibit closed orders only,
order to exhibit open orders only,
OC to show both open and closed orders,
OCP to display open, closed and pending orders,
etc..

In case you don't need some of EntrySettings, ExitProfitSettings, ExitLossSettings, SLSettings, TPSettings traces to be plotted, set them into blank/empty. The 3 required entries are Color, Width, Style, separated by commas.

In case you don't need an item (Price, Pips, Amount, Percent( etc) to be displayed, set its Format parameter into (uppercase) B
More information on the structure masks here.

EquityCalcBasis affects the Percent Yield and Risk, Which Might be calculated as a % of current Balance, Equity or Free Margin.

To display the P/L text, then you have to press F8 and then assess MT4's 'Display object descriptions' ON (see screenshot below). The P/L text only shows in a aid 'bubble' as you move the mouse cursor within the object (line).

For obvious reasons, only trades matching the current chart's pair will be plotted. Just click to a different pair, and the trades for that pair will automatically be plotted.

[NOTE: if you would rather, you may attempt pips4life's Order History indior here.]


2. Trades History from CSV

This indior does precisely the same, except that it reads the trade data from a CSV file, whose name you specify, instead of the Terminal, and plots them onto the chart.

When (for instance) you've got another trader's DetailedStatement.html file, it is possible to load it into Excel, and save it as a CSV file from the .../MQL4/Files folder. The indior will plot the trades all in that document on the chart.

FieldDelimiter is the separator character between the field from the CSV file.

DateTimeFormat is the format of any date/time areas in the document, so that the indior 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 amount
1 = order receptive time
2 = order form
3 = order dimension (number of lots)
4 = order emblem ID
5 = order receptive price
6 = SL
7 = TP
8 = order close time
9 = order close price
10 = commission
11 = switch
12 = profit/loss
13 = remark
14 = magical amount
20 = ignore the field

For instance: 20,0,1,2, .... Means ignore the very first field in the line, the next field is your order amount, the next field is the open time, the fourth field is the order form, etc


Installation

1. Download the attached files into the .../MQL4/Indiors folder.
NOTE: All these indiors were written using MetaEditor/compiler build 509. You need to do so first, if you want the MQ4 supply to compile/run without mistakes. Otherwise, download the EX4 files.

2. Load MT4's Navigator, right click and then choose 'Refresh'. Or simply restart MT4.


Terms and Conditions

#61623; All code is provided FREE of charge. It may NOT be sold or distributed commercially.

#61623; Software is offered on an 'as is' basis. I am not supplying a programming or troubleshooting service; source code has been posted if you would like to alter it yourself (but see the note in red typeface above).

#61623; there's not any guarantee that the program is appropriate for purpose, or without any errors. Download and use the indior(s) in your own risk; I accept no liability for any personal injury or financial losses.
https://www.forexsoutheast.asia/atta...1686493708.ex4
https://www.forexsoutheast.asia/atta...5362182374.ex4
https://www.forexsoutheast.asia/atta...1516888429.mq4
https://www.forexsoutheast.asia/atta...9969358005.mq4