Revolutionary trade copier solution that can filter trades by time using on-screen rectangle objects

The Local Trade Copier v2.1 is the first account mirroring software that allows for the filtering of trades by time using on-screen rectangle objects. I call them “time range filters”. The time range is specified by drawing a rectangle object on the chart, this can be applied to both the master and the slave side. If you ever wanted to configure your trade copier program to not send or not receive any trades during a specified time period like during economic news releases, this is the feature you need. Any number of time ranges can be created on the master and slave accounts allowing you to avoid the copying of trades during any time of the trading day.

By using “time range filters” you can set the Server EA to not send any new trades during the specified time of the day. For example, say you manage multiple accounts from a master account where some 3rd party Forex EA robot is generating trades. You want to prevent this EA from taking new trades 15 minutes before and 15 minutes after an important economic news that is set for release at 12:00. This is basically impossible if your trading robot does not have such a feature. You have to manually remove the robot from the chart and then attach it back later. However during this period of time the robot will not manage the existing trades which may lead to some unexpected losses.

The solution is simple. You need to set your Server EA (the one that runs on your MT4 master account) not to send any new trades to the slave accounts from 11:45 until 12:15. To achieve this you simply need to create a regular MT4 rectangle object with a start time of 11:45 and an end time of 12:15. The parameters window of this rectangle object would look like this.

mt4 rectangle object parameters window

This rectangle object is created on 2013.07.18 and on this day between 11:45 and 12:15 the Server EA will not send any trades to the clients. The currency price shown in the boxes marked values on the right does not have any impact on the functionality and is ignored by the trade copier. You can also set the time range manually once a rectangle object is created. To do this, you will need to double-click in the middle or in any of the corners of a rectangle. This will select the rectangle. Now click the right mouse button and go to “Rectangle properties“. In the new window select the “Parameters” tab. Here you will find two time values just like in the picture above. Adjust them to fit your needs and click OK. An example of this rectangle object is shown on the chart below.

Local trade copier server ea time filter on gbpusd m1

In order for the LTC to detect and use the rectangle object as a time filter you should give it a proper name which must start with notrade. If you want to have multiple rectangle shapes starting with the same name you will have to add a number at the end of the name, because Metatrader 4 doesn’t allow having objects with the same name. It does not matter what number you add at the end of the rectangle object name, just make sure that it’s not the same name. Otherwise, MT4 will give you a warning message and the new object will have a default name, which will not be treated as a filter by the Client EA. The EA will only scan for rectangle objects with names beginning with notrade.

To make it easier for you to draw rectangles, switch to the time frame that best fits your needs. On a 15 minute time frame it may not be convenient to create a time range of a couple of days so you might want to switch to a 4 hour or a daily time frame. But if you need a time range for couple of hours, a 15 minute time frame should suffice.

To draw a rectangle please go to Insert | Shapes | Rectangle and click Rectangle. A window will pop up like in the picture below.

Creating time range filter using mt4 rectangle object

In the next picture you can see the time range filter created on a slave account. It also has text above it that says “No new trades from 09:54 till 10:19”. This means exactly as it reads, no new trades will be opened in this time frame. The Client EA will ignore any new trades that will be sent from the master account during this time period. The “Trade close” and the “trade modify” signals will still be accepted and processed by the Client EA even during this time period.

Local trade copier client ea time filter on eurusd m1

By default your MT4 will not show the “from … till …” message above the rectangle objects. To enable it, you need to press F8 or right-click on the chart and choose Properties. In the new window that will pop up, switch to the Common tab and check the box that says “Show object descriptions“, as shown on the picture below.

mt4 chart properties window show object descriptions

Note that when a rectangle time filter is used on a master account and a trade is ignored by the Server EA, the rectangle should stay on the chart while the trade is open. If you remove the rectangle from the chart, the EA will not send it to the slave account, but if you restart the Server EA and there is no rectangle time filter for the previously ignored trades, the EA will send them as new signals (if those trades are still open on the master account). However they will be opened by the Client EA only if their open prices are within a max price deviation range.

The high and the low price of the time range rectangle do not matter. The Client EA only takes the beginning and the end time of the rectangle into consideration.

You can also access the full list of objects by using the keyboard hotkey Ctrl+ B or by right clicking on the chart and selecting the “Objects List” from the popup menu.

About the author

Rimantas Petrauskas

First I am a father, a husband and then the author of the book “How to Start Your Own Forex Signals Service”. I am also a Forex trader, a programmer, an entrepreneur, and the founder of ea-coder.com Forex blog. I have created two of the most popular trade copiers and other trading tools for MT4 that are already used world wide by hundreds of currency traders.

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Copyright © 2009-2017. Rimantas Petrauskas | Terms and ConditionsPrivacy PolicyEarnings Disclaimer
Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts.
The purchase, sale or advice regarding a currency can only be performed by a licensed Broker/Dealer. Neither us, nor our affiliates or associates involved in the production and maintenance of these products or this site, is a registered Broker/Dealer or Investment Advisor in any State or Federally-sanctioned jurisdiction. All purchasers of products referenced at this site are encouraged to consult with a licensed representative of their choice regarding any particular trade or trading strategy. No representation is being made that any account will or is likely to achieve profits or losses similar to those discussed on this website. The past performance of any trading system or methodology is not necessarily indicative of future results.
Clearly understand this: Information contained in this product are not an invitation to trade any specific investments. Trading requires risking money in pursuit of future gain. That is your decision. Do not risk any money you cannot afford to lose. This document does not take into account your own individual financial and personal circumstances. It is intended for educational purposes only and NOT as individual investment advice. Do not act on this without advice from your investment professional, who will verify what is suitable for your particular needs & circumstances. Failure to seek detailed professional personally tailored advice prior to acting could lead to you acting contrary to your own best interests & could lead to losses of capital.
HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. UNLIKE AN ACTUAL PERFORMANCE RECORD, SIMULATED RESULTS DO NOT REPRESENT ACTUAL TRADING. ALSO, SINCE THE TRADES HAVE NOT BEEN EXECUTED, THE RESULTS MAY HAVE UNDER-OR-OVER COMPENSATED FOR THE IMPACT, IF ANY, OF CERTAIN MARKET FACTORS, SUCH AS LACK OF LIQUIDITY. SIMULATED TRADING PROGRAMS IN GENERAL ARE ALSO SUBJECT TO THE FACT THAT THEY ARE DESIGNED WITH THE BENEFIT OF HINDSIGHT. NO REPRESENTATION IS BEING MADE THAT ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PROFIT OR LOSSES SIMILAR TO THOSE SHOWN.