Login / Register
Add a review
Log in
Sign UP
[bws_google_captcha]

The simplest expert advisor Timed Exit EA automatically closes all trades at a certain time (hours:minutes:seconds) (by Rimantas Petrauskas)

The main idea of the expert Advisor is to automatically close trades at the specified time. For example, if you set the Expert Advisor to close trades at 15:29:30, it will close them every day when the markets are open. This way you can close trades before the news releases.

The Expert Advisor must be installed on a separate chart with any timeframe on MT4, and it will immediately start monitoring your trades. By default, the exit time function is disabled. Be sure to practice using the Expert Advisor on a demo account, and only then activate this feature on a real account. The Expert Advisor will see trades only with the pair (instrument) on which it is installed. By default, the Expert Advisor will close all market / pending orders for the currency pair (instrument) on which it is set. You can also filter trades by magic number. The Expert Advisor is also suitable for working with non-forex pairs/instruments, such as indices, commodities, etc..

  • EnableTimedExit-enables or disables the EXIT function. This feature is disabled by default for security reasons. You can enable it by setting it to TRUE.
  • ExitTime – the exact time of closing trades. HH format:MM:SS or HH:MM. Otherwise, the Expert Advisor will not work. Please note that the Expert Advisor uses the broker’s time, which is also displayed on the panel and in the MT4 Market Overview window.
  • ManageMagicNumber-the Expert Advisor closes trades only with the specified magic number. If the value is set to 0, the Expert Advisor will only see manually opened orders. If the value is -1, the Expert Advisor will see all the trades opened on the account (the default value).
  • ManageOnlyCurrentPair-the Expert Advisor monitors transactions only for the currency pair (instrument) on which it is currently running, or for any currency pair. The default value is TRUE. The Expert Advisor monitors transactions for the currency pair on which it is launched.
  • SlippageClosePips-setting the slippage with which the Expert Advisor will leave the market (close the trade). Please note that not all brokers use it. This parameter also does not work on ECN/STP accounts. If you don’t know how to use it, just leave the parameter as it is.
  • DashboardDisplay-this option configures the display of the Expert Panel. 0 = hide panel; 1 = display text without background; 2 = display text and background (default value).
  • DashboardColor-adjusts the background color of the panel.

[spoiler title=”Read More…”]

You can run the Expert several times if you open an additional chart window for each expert run. Combine the Expert Advisor settings as you wish. You can set up multiple close trades, close trades with different currency pairs, and select multiple magic numbers.

[/spoiler]

Add review
Reviews ( 0 ):