İş tamamlandı
![](https://c.mql5.com/i/avatar/avatar_na2.png)
İş Gereklilikleri
Hi,
i need coding for an expert advisor for metatrader 4. Find enclosed a pdf (idea.pdf) which describes the strategy.
Basically it's a lot hedging strategy which works as follows:
- buy (or sell) at a given level (for example when MA9 is higher than MA18), and just after set a pendign sell (or buy) at a modifiable distance in pips
- if the price goes up and TP for the buy is reached, then take the profit and eliminate the pending sell. cycle finishes here.
- if the price goes down and reaches the pending sell order, sell is executed; when sell is executed, a pendign buy at a modifiable distance in pips is placed.
- again, if price continues down to tp level of sell (and stop loss of buy), then the orders are closed and the pending buy eliminated. cycle finishes here.
- if price changes direction and goes up until pending buy, the order is executed and a new pending sell is placed.
- etc.
It's important that for the order and every pending order following input is modifiable: lot size, stop loss, take profit, trailing stop. Lot sizes follow a schema: 1,3,6,12,24,48,etc.; if it's easier to program, this proportion can be fixed (first pending order 3 times the active order, then double each time), and i will give only first lot size (i.e 0.1, the automatically 0.3, 0.6, etc.), but if it's to difficult to program i can give each value.
It should work on a tick base, for every symbol i choose, and at every time i want. It should perform only one cycle at a time. Once closed, it should immediately start with another. For the strat condition (condition to place first order), you can suggest something, i just suggested MA as an example.
Please find enclosed also some examples of very similar expert advisors, but they don't have all the features requested above. May a starting point.
Would this be a job for you? How long would it take andhow much will it cost?
Thanks in advance for a prompt reply.
Kind regards,
Sandro Gianella