EA to open trade at specified point of time

alpha

Member
MT4 EA to open trade at specified point of time
The ea executes market orders with SL and TP just like pending Stop and Limit orders.
The expert can buy a Stop or can buy a Limit order as selected in OrderTypeToExecute.
At OrderEntryToExecute can be selected
1. Only Long trades
2. Only Short trades
3.Long and Short trades
It works like this.Every day at settled hour and minute the expert will memorize the Bid with the name of POC (point of control) and will launch trades Limit or Stop orders based on settings ,when the price go bellow/above the POC +- EntryDistance.All the orders have TP and SL settled in the Send order.
If at given time to memorize the POC exist orders who didn't hit TP SL from previous day the expert won't do nothing.
The EntryTolerance is used to not allow an order to be executed too far away from POC + EntryDistance.

PS.If a order is active and the expert will be reinitialized won't do nothing since it recognize the already existing order magic number.
Can exist ONLY 1 buy and 1 sell at the same time.I will add the option to check the spread before execution.

Attached File
File Type: ex4
TimedExecution_v1.ex4 18 KB | 277 downloads
Attached File
File Type: mq4
TimedExecution_v1.mq4 9 KB | 356 downloads



1658839188294.png
Reference
 

Attachments

  • 1658839135180.png
    1658839135180.png
    183.2 KB · Views: 0
  • TimedExecution_v1.zip
    19.5 KB · Views: 0

beta

Member
Another similar EA with time to trade function.

How to Close All Open Trades on MT4 at Specific Time​

1658843439369.png
 

Attachments

  • CloseOnTime-ea.zip
    21.4 KB · Views: 1
Top