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
- Draw / plots the trading history on the chart.
- What is displayed
- Arrow when openng a position
- When opening the LONG position: Blue arrow
- When SHORT position is opened: Red arrow
- Arrow when closing a position
- When closing the LONG position: Red arrow
- When SHORT position is closed: Blue arrow
- A line connecting the position from open to close
- If profitable: light blue line
- In case of loss: Red line
- The color and thickness of these lines can be changed on the EA’s “Parameters” screen.
- Arrow when openng a position
- Timing to be displayed
- When you press the ON / OFF button for drawing trading history
- If you are trading with drawing ON, the display will be updated at the next 1-minute display timing after closing.
- What is displayed
- The exported account history is displayed on the chart.
- For the account history export method and file format, refer to the account history export method.
- 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)
- First, download Indicator from the following.
download page for LU_DispTradeLog_Ind.ex4 is here. - Load the downloaded Indicator into MT4(how to load the indicator)
- After loading the Indicator, check “Allow DLL Imports” on the Common tab.
- Make your favorite display settings on the Parameters tab
- ① is “Setting the thickness of the line that represents from the acquisition of the position in the transaction history to the settlement”.
- ② is “Setting the line color when you make a profit”.
- ③ 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.
- First, copy the exported account history file to a folder under MT4
- For the copy destination, open MT4, move to the directory displayed by selecting “File”-> “Open Data Folder”, and then copy to “MQL4”-> “Files”.
- After storing the import file, the next step is to display the parameter input screen of LU_DispTradeLog_Ind.ex4 downloaded above.
- 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