We recommend:

  1. Home
  2. Scripts
  3. MQL5 Show Signal History – the script displaying the signals history to your terminal

MQL5 Show Signal History – the script displaying the signals history to your terminal

Script for displaying deals in the history of site signals

The website of the Company is the official site of MetaQuotes Ltd, which has developed for us trading terminals Meta Trader 4 and Meta Trader 5. The site has its own forum, a huge database of code, articles for trading, work scripts, indicators, advisors, and, of course, trading signals.

As the largest provider of signals, the company collects a considerable number of traders and subscribers – people who invest in trading: copy the trades of more experienced traders in their trading terminal.


The DaVinci FX Group also delivers signals, which you can see in the PAMM/Signals


 

Among the huge number of signals to the subscriber sometimes it is very difficult to find stable trading accounts, to conduct a qualitative analysis of transactions on the history of trade. Just for this purpose, our script was created, which will help you to analyze in detail the history of the trader’s trading account piece by piece, to understand the methods, the basis of the trading strategy used.

Let’s say you want to subscribe to the signal you’re interested in. In order not to lose money you have to pre-it on “toxicity”. There are many trading methods that show a beautiful growth curve on the yield chart, but in fact they are risky systems whose risk exceeds the acceptable drawdown. These systems include pips, whose goal is a tenth of the points with a large number of open trades, methods of averaging after a loss-making transaction, overstateing the trading lot several times for a warrant opened after a loss-making transaction, and methods of topping with a dozen simultaneously open positions for the purpose of averaging. Avoiding such accounts will help to analyze such trading orders in your terminal, where you will be able to see the price of opening/closing the order, its income or loss, Stop Loss, Take Profit, as well as deferred orders of the trader.

This analysis will help you understand the degree of risk of the trading signal, weigh the whole for and against before making a decision.

Script settings:

History File nameThe name .csv of a file downloaded from the website of MQL5 in the Files folder.
Load history daysThe number of days of trading order history that need to be loaded. At 0, the whole story is loaded.
Hour GMT ShiftShift the opening/closing time of trading orders relative to your broker’s GMT and data from the site.
Signal PrefixPrefix a currency pair if it is available from a signal provider broker.
Signal PostfixPostfix currency pair if it is available from a signal provider broker.
Choose SymbolChoosing a currency pair to download data: only the current pair (Current Symbol), or all the symbols that are in the presence of the signal provider (All Symbols).
Chart TimeFrameSelect the timeframe of all the charts that will show the trading history.
Show Pending OrdersShow unactivated pending orders on the chart.
Show Orders TP/SL LineShow short price segments of Take Profit and Stop Loss next to the opening price of the order
Show Profit LabelsShow income and loss over the closing price of orders, as well as total income/loss for the current pair.
< < Design Settings > > Appearances
Line WidthThe thickness of the line from the opening price to the closing price. When more than 1 style line is longer, always “Solid Line.”
Line StyleThe style of displaying the line between the opening price and closing of the order at LineWidth 1: Solid Line, Stroke Line, Dotted Line, Dotted Line, Double Point Bar.
Font SizeThe size of the profit/loss font on orders.
Buy Orders ColorThe color for the triangle that marks the opening of the order, as well as the color of the line that connects the closing price of the order for purchases.
Sell Orders ColorThe color for the triangle that marks the opening of the order, as well as the color of the line that connects the closing price of the order for sales.

An example of how the script works:

First, let’s go to the site of MQL5.Community and choose the right signal. Clicking on the “History of Deals” tab, at the very bottom will be the inscription “Export to CSV: History.” We download the file and transfer it to the Files folder, which is in the directory:

C:\Users\Admin\AppData\Roaming\MetaQuotes\Terminal\ < user number > \MQL4\Files

To go straight to the terminal file folder, click File – > Open the Data Directory.

In the script settings, we select the name of this file in the History File name. We customize the rest of the settings for ourselves by selecting the current character, or all of the history to display, specifying the prefix and postfix, the desired timeframe and other settings.

The script will need some time for analysis, after which all trades will appear on the chart:

To find out the lot of the trading order, you need to bring the mouse to the triangle of opening this order, there will be an information window with the name of the object and the value of the trading lot:

An additional feature of the script is to calculate the total revenue or loss on the current character during the Load history daysyou specified in the settings. The data is displayed in the top right corner:

If the trade has been conducted for more than a year, and you want to display absolutely all the trades, then you will have to be patient, because the script needs time to analyze this amount of data.

To clear the chart of the received graphic elements, you can use our script DaVinci Delete all objects from chart. It will easily be able to remove all objects, or only those that contain a certain name, analyzing current or all open graphs.

This script will add to your collection on the way to profitable trading, because to understand the settings will not be difficult.

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu