Termos de Referência
I'm looking for an EA which is opening after definated candle numbers in a row and trend, Pendings orders, which will be then good for xhours (example 23 hours after orders are placed- the pending will be deleted - if they are not executed).
For orders which will be executed in Market, if they executed with profit, they will be replaced as pending direct after TP - the expiry hours work again for the new pending order.
If orders in Market, EA does not restart. Only if there is no order in Market - EA does check candles and place pendings of criteria are there.
Only if orders are executed or expired (so no order in Terminal) - EA is trade new next candle if there is still the minimum candles in a row.
If candle trend change, EA does restart and wait for the next possible candle numbers in the row.
EA should have a magic number.
EA is opening after defined candles "x numbers of candles in a row in trend" in direction (+xpips over high or low) a pending order.
Order will be placed on high and low, +xpips after Xcandles ore more where in a row.
Parameter:
Xcandels - placing buy and sell order - if more than definated candle in a row were. EA is active - example set is 2 candles - so pendings will be placed on opening of 3 candle. EA does open on high and low + xpips an order - on High a buy on low a sell.
So if on 3 candle Pendings all orders are executed and pendings expired - EA will place on 4th candle if there is no order in Terminal and Trend is also there on hihg and low of candle 3 each +xpips the buy and sell pendings.
Xpips - example 5 pips so buy order will be placed 5 pips higher as high of the candle - sell just the other way
Pending are good for x hours - works for every pending which will be placed on time when placing
Second candel defination
there should be a second candle defination be there were only on one side will be placed the pending.If second candle defination is activ first candle defination does not work.
First candle definatin was after 2 candels. So if second candle set is 4 candel. On the 5 candel there will be only placed the pendings but only on side against trend. So if we have a buy trend the pendings will be only placed on low +xpips.<
So abter 4 candel if the trend goes xx candels ther will be only placed the pendings on one side. and the side is against trend.
Placing of the pending orders starts always with new opening of candle and if there is no Order open in Terminal.
Button in Chart - I want an button in Chart - if this button will be pressed, EA should place the Pendings under above criterias. If there were before 2 candels in a row (first candel defination) EA should place the pendings above and below candle before.
If second candel defination is activ EA should only place if ther were (4) definated candels in a row and the pendings should be placed an low of candle before.
Always if button is pressed:
EA is placing orders on criterieas but only if there is no orders under pending or in market.
Reopening
If an order is closed with TP - this order will be replaced +xpips pips better direct again as pending. So every reopening will be xpips better.
For each closing I want to definated the TP
- Closing 20 Percent of the order at xpips TP
- Closing 20 Percent of the order at xpips TP
- Closing 20 Percent of the order at xpips TP
- Closing 20 Percent of the order at xpips TP
After first candl trade is done: SL will updating to next candel (high or low +xpips).
Expiere of pending order - xhours- After no orders in Terminal EA does restart-