Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Hey I need somebody who creates an simples EA with MQL4 Source Code
The EA is started manually by me in the evening.
Since forex trading starts at 00:00, the EA should ideally open the order at the OPEN price. If the spread is too high at this point, he should wait with the first order until the spread does not exceed the required value. (In practice this will probably be a few hours later)
The trade should be closed when the following conditions are met for SL and TP:
Bay: Take Profit = Ask , if Ask < Max( High[1], High[2], High[3] ), works after 1 Bar and a profit of at least 0.1% was achieved in the trade
StopLoss = Ask , if Ask < Min( Low[1], Low[2], Low[3] ) , works immediately or after 1 Bar
Sell: Take Profit = Bid , if Bid > Max( High[1], High[2], High[3] ), works after 1 Bar and a profit of at least 0.1% was achieved in the trade
StopLoss = Bid , if Bid > Min( Low[1], Low[2], Low[3] ) , works immediately or after 1 Bar
New order can only be executed when the EA is restarted
Inputs:
MaxSpread
MaxSlippage
TradeSize
StopLoss : Immediately or after 1 Bar
Minimum Trade Duration = 1 Bar
Maximum Open Trades =1