Trabajo finalizado
Tarea técnica
Hi, I need an EA using my indicator.
Concept of the Indicator:
The indicator is showing the simulated hedging gap open between 2 currencies. It is using current live market price minus to a fix daily open price to do the calculations and get the simulated trade result.
EA Strategy:
The strategy is when the gap opens drop to red color zone or drop to negative level, at certain level open a new Currency Co-relationship Hedge order (with 2 symbols).
Symbol:
- The indicator is fixed setting as Symbol 1 for Ask; Symbol 2 for Bid
- When I running the indicator is open 2 window to see opposite position calculation, but now running the EA, I want it combine directly can be doing both options.
Example:
A = Symbol 1 - EURUSD (Ask)
Symbol 2 - GBPUSD (Bid)
B = Symbol 1 - GBPUSD (Ask)
Symbol 2 - EURUSD (Bid)
ENTRY POINT:
- Starting from -40 pips (adjustable), open a hedging pair order (symbol 1 – Buy; symbol 2 – Sell)
- Drop every -10 pips (adjustable), open a hedging pair order
- From start entry, we give a name basic entry, use in basic lot size, until drop to certain level (give name advance entry) start martingale
LOT SIZE AND MARTINGALE:
- From basic entry point, the lot size is basic lot size, before the different of gap hit advance entry 1, use in same lot size.
Example:
Basic entry point lot size = 0.01 lot
At -40pips, 0.01 lot
At -50pips, 0.01 lot
At -60pips, 0.01 lot ... until hit advance entry 1
- From advance entry 1, start martingale, before the different of gap hit advance entry 2, use in same lot size.
Example:
Advance entry 1 lot size = 0.01 lot X 2
At -100 pips, 0.02 lot
At -110 pips, 0.02 lot
At -120 pips, 0.02 lot ... until hit advance entry 2
- From advance entry 2, start martingale, before the different of gap hit advance entry 3, use in same lot size.
Example:
Martingale = 2
Advance entry 2 lot size = 0.02 lot X 2
At -200 pips, 0.04 lot
At -210 pips, 0.04 lot
At -220 pips, 0.04 lot ... until hit advance entry 3
- From advance entry 3, start martingale, before the different of gap hit advance entry 4, use in same lot size …
EXIT POINT:
- 2 types of exit method
- Basic entry and following trade (if the trade never reaching advance entry 1), just simply close at exit 1
Example:
-40 pips entry, -30 pips (exit 1) close = profit 10 pips
- If advance entry 1 or lower-level was open, all trade (including basic orders) will close at exit 2
· Exit 2 = breakeven / average / neutral (including all the cost ex. Interest/swap) at previous of the last open trade (refer to drawing), and the last open trade will be my profit.
DAILY REFRESH:
The EA calculation needs refreshing daily. (Currently the indicator doesn’t have daily refresh yet)
- Refresh from daily 00:00:00, to get the simulate position.
In case there are some trades are still not closing before daily refresh, those trade will keep remain the opening date calculation for seeking exit. And will not affect to others daily trade open.
Info panel:
- In the info panel showing me there is how many groups of order are still trading.
- A set of co-relationship hedge including start order and additional order, consider a group.
· If opposite co-relationship hedge order or those orders still floating before current date, also consider few groups.
- Example: 3 groups are still trading = display “3”
- Have to list those orders exit level of the trade are waiting.
· If the trade is waiting for normal Exit 1 just display “Exit 1”
· If there are a few groups waiting for Exit 2, display “Exit 2”, need to show me the date open, and the breakeven / average / neutral level.
- Account balance
- Account equity
- Profit / Loss
Input and Setting:
- Symbol 1 for Ask
- Symbol 2 for Bid
- Basic entry point
· Start from range -40 pips to -90 pips
- Advance entry 1
· Start from range -100 pips to -190 pips
- Advance entry 2
· Start from range -200 pips to -290 pips
- Advance entry 3
- Advance entry 4
- Advance entry 5
- Advance entry 6
- Advance entry 7
- Advance entry 8
- Advance entry 9
- Advance entry 10
- Basic exit (Exit 1)
· Example at -30 pips
- Basic lot size
- Martingale
- Info panel position
Remark:
First, I have to know, programmer needs completely understand the concept of my strategy, because this EA are not able to do in MT4 tester, it couldn't to know any error at time, so it must be one shot complete.
Second, about the info panel, because of the EA are not able to observe by the MT4 tester, so I need to do something in info panel to easily to observe the EA working, whether it's correct or not.