Simple EA that makes buying / selling from the opening price of the day

 
Hello everyone
I'm looking for a simple EA that makes buying / selling from the opening price of the day, with fixed price for all day


Maybe this already exists, but I can not find
I am really very bad with MQL codes ...


-----------------------------------------------------------------------------------------------------------------

Rules of EA

Open buy or sell from the start of the day

if the price close higher than the opening price of the day + margin = buy
if the price close lower than the opening price of the day - margin = sell

margin to buy = 10 points higher than day opening
margin to sell = 10 points lower than opening day

stoploss = 30
takeprofit = 200

to open a new order close the other in the opposite direction

Close all orders at the end of the day

-----------------------------------------------------------------------------------------------------------------

Example Sets:

Opening day: 08:00 hours
Starting price of the day: 1.31777


if price close> 1.31777 + 10 points = buy
if price close <1.31777 - 10 points = sell

Stoploss 30 points = 131737
Takeprofit 200 points = 1.31987

to open a new order close the other in the opposite direction

Day closing: 22:00 hours.


I realize that this strategy works well on timeframes of M5 M15
 
Chart USDCAD, M15, 2018.09.05 18:49 UTC, Tickmill Ltd, MetaTrader 4, Demo
 

I will suggest you to pay for this development at:

https://www.mql5.com/en/job

Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • www.mql5.com
I want to create an EA (trading robot) that will take a Buy market position after price has moved over a Moving Average and retraced back down to the Moving Average price level.  For a Sell market position, after price has moved below a Moving Average and retraced back up to the Moving Average price level.  Note:  this EA must be able to work...
Reason: