Receive the latest alerts via email

Time Your Trades: Getting to Know MetaTrader’s Time Based Orders

Time-based orders allow you to request your order be filled at a specific time of day. These can be incredibly helpful when trading according to a high impact economic news event. However, there are restrictions on these depending on the specific exchange or market you are trading. Despite some technical limitations, these time-based orders are…
Time Your Trades: Getting to Know MetaTrader’s Time Based Orders

Time-based orders allow you to request your order be filled at a specific time of day. These can be incredibly helpful when trading according to a high impact economic news event.

However, there are restrictions on these depending on the specific exchange or market you are trading.

Despite some technical limitations, these time-based orders are possible in MetaTrader 4 (MT4). These revolve around expert advisors or Eas.

MT4 EAs function based on incoming ticks. Whenever the bid/ask price changes by a micro pip or more, the EA is triggered to do something.

When the markets hum along rapidly, this effect is not noticeable. But, when the quote flow slows down, it can cause the EA to sleep entirely through your trading window.

Many news traders want to bracket buy- and sell-stops around the price at 08:29 on NFP Friday. Everyone knows that a major news event is about to release, causing trading to slow along with the flow of quotes.

As a result, there is a possibility the pending orders may not set in time. That is unless there is an incoming tick in the 60 seconds between 08:29 and 08:30.

This seems unlikely to many novice traders, but it happens frequently enough that we inevitably receive these types of questions whenever we program a time-based order placement EA.

The workaround typically satisfies most traders. EAs place an order at the first available tick within a certain time window. Using NFP as the example, the EA might seek to place bracket orders around the first tick between 08:29-08:32. The chances of making it 2 minutes past 08:30 without a single tick are low. Given that you are taking the first tick, the orders will successfully bracket around the price most of the time.

It is essential to keep in mind how the backend works for those one-off events where the orders do not function as desired.

MetaTrader addressed the time weakness of MT4 in their MT5 update, which offers event-driven programming. This made it possible to rewrite MQL4 EAs into MQL5 and demand an action at a precise time.

The MQL5 timer actively watches the clock. So regardless of what the markets do, the EA can know to wake up and do whatever action is needed. This is one of the few scenarios where converting from MQL4 into MQL5 comes with obvious advantages.

Total
0
Shares
Previous Post

After experiencing a 14.58% bearish move in the space of 24 days, nobody knows where Home Depot Inc. is headed.

Next Post

Silver MARCH 2022 hits 23.02 after a 3.7% move spanning 2 days

Related Posts
Getting to Grips with the Guppy

Getting to Grips with the Guppy

One of the most frustrating things about constructing a trading system can be the absolute freedom to use whatever indicators and values you like. While this can initially sound positive, the virtually limitless combinations of variables can become quite overwhelming. For example, if you like the concept of the SPY 10/100 SMA Long Only System…
Read More
Why use Repainting Indicators in MetaTrader?

Why use Repainting Indicators in MetaTrader?

Repainting indicators are one of the most common problems facing would-be EA designers. Sometimes it seems like an indicator has its thumb on the market. It perfectly predicts when the market will go up or down. So making an EA run off of the indicator is a no-brainer. If this sounds familiar, you need to…
Read More
Setting the Day Trading Ground Rules

Setting the Day Trading Ground Rules

Day trading is challenging. Don’t let anyone tell you otherwise. The odds are stacked against you, and the risk of loss lurks at every turn. That’s why it’s important to understand the ground rules of day trading. Start with your Range One of the most common mistakes with day trading is failing to identify the…
Read More