Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
EA should open Market-Orders on basis of Indicator or alredy existing Order done Manual or by other EA.
Order should be placed as normal Market Order - no MM
I looking for an EA which is opening on basis of my Indicator whith two criterieas an market order.
After these Order are closed there is an reopening of Order under special criterias on base of attached Indicator.
Criteria one:
So if I activate EA for criteria one - in a grean period, EA should open after colour of
Indicator has changed to red an market Order sell with Xlots as in parameter.
So if I activate EA for criteria one - in a red period, EA should open after colour of
Indicator has changed to green an market Order buy with Xlots as in parameter.
Activ: yes / no - should shown in chart - Criteria one is activ
Lots: exampel 0.13
xcandels: After activation in a period EA is waitin Xcandels against trend to open the market Order.
Criteria one how to Reopen orders if Reopening is activ:
So if I activate EA for criteria one - in a grean period, EA should open after colour of
Indicator has changed to red an market Order sell with Xlots as in parameter.
For this order for Reopening the next Order EA should be opend as
market order. EA wait Xcandels green and open again after one red candel
an sell order.
So if I activate EA for criteria one - in a red period, EA should open after colour of
Indicator has changed to green an market Order buy with Xlots as in parameter.
For this order for Reopening the next Order EA should be opend as
market order. EA wait Xcandels red and open again after one green candel
an buy order.
Note:
Order must place under criteria one and criteria two as normal market order as I would do with manual ticket.
How deside EA wich side he should trade - Long or Short?
If I start EA in a green heikin-ashi-smoothed period - so EA trades after activation Short - Order should be placed after there was one red Heikin candle closed from Heikin-ashi.
The repeat orders are also only short for this Orders.
Other
siede - If I activate EA in a shortperiod -EA is opening an order if
Criteria one is activ as Market buy Order - Order should be placed after
there was one green Heikin Candle closed from Heikin-Ashi.
Repeat Times as in setting definated.
Criteria two - Hedge an alredy existing and open order in the terminal.
EA should check open orders in Terminal and if there is an Order in Terminal which after was opend, Xcandels of Heikin-Ashi bevor opening time are differend - EA should place a Hedge market Order same amount.
Example:
Sell order is in the Market (opend Manual or buy an other EA) and Xcandels before that opened Order Heikin-Ashin shows Xgreen Candels - so EA if is activ, EA should open an buy order (Hedge) with same amount of Original Order.
for buy order is in the Market (opend Manual or buy an other EA) and Xcandels before that opened Order Heikin-Ashin shows Xred Candels - so EA if is activ, EA should open an sell order (Hedge) with same amount of Original Order.
Parameter for Criteria two:Criteria two Hedge Activ: yes / no - should shown in chart - Criteria two Hedge is activ
Xcandels which must checked before to reopening, for example more than 6 before - for placing the market Order.
If the candels before of the alredy original Orders (opend buy manual or other EA) in the market, are not different EA is doing under criteria two nothing.
If Repeate is activ - after the Order is total closed Opening new order should repeat Xtimes as selected - till good at Time.
For
Reopening of sell Orders EA is waiting under criteria two for sell
Orders more than Xcandels red and after the red candels must come one
green candel and the original buy order is placed again as normal market
order. Repeat Xtimes as in Parameters Repeate.
Parameter for Repeate:
Repeate should be good till x hours and should work for criteria one and criteria two if is activ. If Repeate is not activ - EA is handel just one Order
If Repate is activ - it should shown in chart.
Parameter
Repeate activ / inaktiv
Criteria one:
buy side parameter:
Xcandels to wait: After total closing Order from this EA wait: more than example 6 candels red
Xcandels before opening: and if than XCandels green done - buy Order should be reopend
Sell side parameter
Xcandels to Wait: After total closing Order from this EA wait: more than example 6 candels green
Xcandels before opening: and if than XCandels red done - sell Order should be reopend
Criteria two:
sell hedge parameter:
After total closing Order from this EA wait: more than example 6 candels green
and if than XCandels red done - sell Order should be reopend
buy hedgeparameter
After total closing Order from this EA wait: more than example 6 candels red
and if than XCandels green done - buyl Order should be reopend
Times of replace : 3 For boat criterias
Good till 35 hours after that time- no more orders for boath criterias
In chart should shown
If EA is still activ
If good till and or all orders done EA is not activ
Profit or loss of the session
EA is waiting to open an order - xlots
Repeate is activ or inactiv
Order must place as normal market order as I would do with manual ticket.
Indicator with EA should worked is Attached
Example pictures attached