Trabajo finalizado
Tarea técnica
Hi
I would like an EA written for Mt4. It's a fairly simple EA to manage a grid.
The EA will take parameters as:
- Paid (symbol) - gbp/usd
- Lot Size
-Channel bottom price (the bottom price at which no more orders are created)
- Channel top price (the top price at which no more orders are created
- Grid Spacing - how many pips between each trade
- Target profit in pips
- Trailing in pips
- Replace Orders - yes/no
- Directin - buy/sell/both
- Magic Number
The EA will then create orders from the bottom channel price to the top channel price in the direction, which can be sell orders, buy orders or both. It will setup the orders at the specified grid spacing, so for example 25 pips. The orders then get picked up as the price hits. Once the trade is in profit by the target profit it will turn on trailing by the trailing in pips, maybe 2 pips. Once there is confirmation that that trade is locked into profit it will replace the exact same entry order.
So for example I may select:
gbp/usd, 10k lot, bottom of 1.5207 and top of 1.5307 with a grid space of 10 and select direction both - the grid will have 20 trades, 10 long and 10 short, the top/bottom number is important, you see the '7' so the entries would be 1.5207, 15217, etc
The script will maintain this grid. So lets assume we came up from 1.5206 and got to 1.5207 - we pick up the short and long and open the positions. We now go to 1.5217 - our target profit is 10 ppis so we turn on trailing to be 2 pips behind (so locking in 8 pips), once we get confirmation from the platform this is locked in we replace that long entry order back on 1.5207
If the script is set to sell only it will only set short orders and vice versa if set to buy
If the script is set to not replace entry orders it will create the initial entry order, once that order is opened and hits its target profit it will lock in and manage the trade out but NOT replace the entry order.