Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
Hi,
EA will have:
time to start and end (Without Hedge)
lot =
profitSize =
Description =
time for hedge =
Order direction = for symbolA and B, can be selectable. I can choose if it will open buy or sell, and when hedge is enabled, it will duplicate orders as well.
EA will send order using 2 symbols simultaneously and compute the profit between both.
Example -
buy usdcad - buy eurusd - Profit 50 usd when reached, close both orders .
or, if buy for symbolA, and sell for symbol is selected:
buy usdcad - sell eurusd - Profit 50 usd when reached, close both orders .
-if hedge is enabled ,it will open opposite order as well. hedge has time to start and end as well.
example,
buy usdcad, eurusd - when 50usd of profit - close both
sell usdcad eurusd - when 50usd of profit - close both
or
buy usdcad - sell eurusd - Profit 50
buy usdcad - sell eurusd - Profit 50
# Without hedge enabled -
Trade will start based on open price and current price of the first Symbol (Selectable) .
Example, if current price is higher than open price , it will open buy for both symbols and vice versa.
# Hedge enabled
Hedge is enabled, it will open 4 order 2 buys, 2 sells - for 2 symbols .
example,
buy usdcad, eurusd -
sell usdcad eurusd
Another point: EXample,
time to start 9am- time to end 15pm
however, we have hedge enabled with time to start 9am , time end 11am -
IT means, that EA will hedge until 11am , and after, proceed open orders without hedge - if hedge order remain opened, it needs to understand to not open order on same direction following the conditions
" if current price is higher than open price , it will open buy for both symbols and vice versa." - So, if we have a remain order hedged buy - it will not open new or sell .
However, if we have the reamin hedge order as sell - and we have the condition, it will open buy like if we have hedge enabled.
#
If I run the EA on same symbol , but different windows (example 10), it should be able to handle like pair (SymbolA-SymbolB), even if we had hedge enabled.
source code should be provided.
Let me know if you need more information.
It will be used on Brazil´s market.
Thanks in advanced!