[Free] Indicator that draw / plot MT4 account history on the chart

Have you ever wanted to study trading by displaying MT4’s past trading history, trading history, or trading history of others on Chart?

Here, for such people, we will introduce an Indicator that draw / plot trading history / trading history on the Chart of MT4.

Contents

Indicator that draw / plots trading / transaction history on the chart

1. Indicator specification

  1. Draw / plots the trading history on the chart.
    1. What is displayed
      1. Arrow when openng a position
        1. When opening the LONG position: Blue arrow
        2. When SHORT position is opened: Red arrow
      2. Arrow when closing a position
        1. When closing the LONG position: Red arrow
        2. When SHORT position is closed: Blue arrow
      3. A line connecting the position from open to close
        1. If profitable: light blue line
        2. In case of loss: Red line
        3. The color and thickness of these lines can be changed on the EA’s “Parameters” screen.
    2. Timing to be displayed
      1. When you press the ON / OFF button for drawing trading history
      2. If you are trading with drawing ON, the display will be updated at the next 1-minute display timing after closing.
  2. The exported account history is displayed on the chart.
    1. For the account history export method and file format, refer to the account history export method.
    2. The display content is the same as the function of “1. Draw / plots the trading history on the chart”.

2. How to use(When draw / plots your account history on the chart)

  1. First, download Indicator from the following.
    download page for LU_DispTradeLog_Ind.ex4 is here.
  2. Load the downloaded Indicator into MT4(how to load the indicator)
  3. After loading the Indicator, check “Allow DLL Imports” on the Common tab.
  4. Make your favorite display settings on the Parameters tab
    1. ① is “Setting the thickness of the line that represents from the acquisition of the position in the transaction history to the settlement”.
    2. ② is “Setting the line color when you make a profit”.
    3. ③ is “Setting the line color when profit or loss occurs”.

5. Once set, Next, click the account history tab(C in the figure below) of MT4 and change to display only the section where you want to display the account history on Chart.
(If the period is long, it may take some time to display.)

6. After completing the above settings, Like A and B in the above figure, the “DISP !!” and “DELL!” Button icons are displayed in the upper left of the Chart. If you want to display the account history, click “DISP !!”. If you want to hide the displayed transaction history, you can delete it by clicking “DELL !!”.

7. Regarding the Account history display on the Chart, if for some reason you can not delete it even with the “DELL!” Button, right-click on the Chart and select “Displayed Line etc.” and it will be displayed on the Chart. Displays the existing line information. I think that there are “Arrow” and “Trendline” that start with “DIPTRENDLOG_” as shown below, so if you delete them, the display will be deleted.

3. How to use(When draw / plots the exported account history on the chart)

I will explain how to display the file that exported the account history on the chart.

  1. First, copy the exported account history file to a folder under MT4
  2. For the copy destination, open MT4, move to the directory displayed by selecting “File”-> “Open Data Folder”, and then copy to “MQL4”-> “Files”.
  3. After storing the import file, the next step is to display the parameter input screen of LU_DispTradeLog_Ind.ex4 downloaded above.
  4. In importFileName, enter the file name of the import file copied in 2.).

5. If there is a discrepancy between the trade history time of the file to be imported and the time of your MT4, you need to correct the time.Please specify the setting that applies to the following in “ofsTimeMode”.
 Offset time none : If you do not correct the trade history time of the file to be imported
 Plus Offset : When making the trade history time of the file to be imported plus offset
 Minus Offset : When you want to minus offset the trade history time of the file to be imported
6. If you set “ofs Time Mode” to something other than “Offset time none”, set the offset time to ofsHour and ofsMin.Set a positive number even when correcting to minus offset.
7. Click the “OK” button when you are finished.
8. The button “IMPORT MODE ON !!” is displayed on the upper left of the MT4 chart screen with the indicator added, so please press the button.

9. The rest is the same as the operation method so far, if you want to display the trade history on the chart, press the “DISP !!” button.
10. If you want to hide it, press the “DELL !!” button.
11. If you want to display your MT4 account history again, click the “IMPORT MODE ON !!” button again. (You can display your account history if the button is not pressed.)

NOTE:
When importing and displaying a file, the symbol name of Chart is compared with the symbol name described in the file you want to import, and if the same character string is detected, it is output.
If there is a special character string in the symbol name, change the symbol name of the import file to the same character string as the symbol name of the Chart you want to display and try importing again.

4. NOTE:

It seems that the operation of MT4 may be slowed down by using the DispTradeLog_Ind.ex4 indicator due to compatibility with other Indicators.
If the operation is slow and the display cannot be erased, load the following “Indicator to delete all objects” and delete all the objects once displayed in the Chart field.(Objects other than those created with DispTradeLog_Ind.ex4 will also be deleted, so if necessary, add them again after deleting them.)
ObjDeleateAll.ex4