Specification
i need to develop an expert advisor for MQL5 based on a double grid hedge system with multicurrency portfolio approach.
(EURUSD-GBPUSD-USDCHF-USDJPY-GBPJPY-EURJPY-GBPNZD)
I need a programmer with experience in grid development
I will send the detailed specifications of the request on a separate file
I will use some numbers of pips as an example to explain how the algorithm works but they will be decided in the detailed file
The steps and principles of the system are:
1) decide the size of the grid for your currency.(200 pips)
2)You enter in to a BUY and SELL transaction simultaneously
( no stop for the transactions and have a 200 pips targets.)
3) You then create a series of BUY and SELL pending orders on each level 200 pips above and below your entry price for say 3 levels (this numbers are for example) – this means the price has to move 600 pips upwards or downwards before you run out of orders. We also want all the orders to activate at the same time once a grid level is reached so care should be taken to make sure that the Buy and Sell activation levels result in simultaneous activation.
4) When the price moves 200 pips in either direction your positive transaction will be “cashed in” (terminated or close the transaction positively as it has reached its target), and the next set of buy and sell orders will activate. If the movement was up you now will have 2 active sells and 1 active buy. The basic rule of grid trading is that you should always be in a position to cash in positively no matter which way the market moves.
5) You would now also replace the cashed in transaction to make sure that the grid remains complete with a buy or sell pending order on each level.
6) When the total of all transactions “cashed in” and those transactions still active adds up to a positive gain (or breakeven, “case c” in the image below) at any cash in GRID level you would close all unnecessary transactions (transactions with a positive or negative balance) and start again.
7)Steps 3 to 7 will be repeated over and over again.
must be included the source code , with comments for each function.
I ask for 5 checks with the developer before the final product, with the aim of arriving at a solution for both
The expert must be backtested and optimized for the last 10 years according to the following criteria:
- the most important criteria of optimization is Launching it month by month the absolute dd% should not be never higher than the 10 % of account
- launching it month by month it should have an average return of 10% of starting balance , obviously with deviations that can be significantly lower or higher depending on market conditions
the expert is meant for an account of:
- 40000 euro
- leverage of 1:100
- Margin Mode: Hedge
- Margin Call at 50% and Stop Out at 30%
I need an input parameter to switch to code mode in:
- Opening price
- Tick
to have the ability to either test and optimize it quickly or more accurately
the other parameters, specifications and settings will be described in the main file
the images are in the attached file