Job finished
Specification
Dear Freelancer,
I would like an EA for MQL4 but which is compatible with MQL5.
It is a basic EA. Similar exist but I can’t get them to act the way I want. I’ll need access to change all of the parameters listed below as I’ll be experimenting with this EA quite extensively. This is likely to be the first of a few versions. An overview of the rules of the EA:
--- EA to place two simultaneous stop orders; one buy side, one sell side
--- Placement of stop orders is based upon previous Heikin Ashi close values on M1 chart and so the EA would modify the stop orders every minute to the new close on the next bar. I would need to be able to change how far back it records the close price from (ie 9 bars ago), and at which price above/below the respective close price that the orders are placed.
--- Each order will have a stop loss (min 1 pip) and an optional take profit (0 to disable)
--- If an order is executed, the unexecuted order will be cancelled so that only one trade is active at any time
--- An executed order would have a changeable trailing stop loss that has the option to stop trailing once in profit
--- Size of orders is decided by lots in the inputs table
--- Once a position has been closed, the EA starts again. I would like there to be the option of a “cool down” period of X seconds before the EA places orders again. If cool down period is set to 0 it will place the new orders immediately, and if it is set to anything higher than 3600 the EA will not make any further trades and displays something like “Robot Finished on market XXXXX” in a dialogue box.
--- If, following a closed trade, the current market price does not allow one of the stop orders to be placed, then the EA would place a straight buy/sell order in that direction (E.g. if the market price is above the parameter for setting the buy stop order, a market buy order is placed at the current market rate with the same SO and TP parameters)
--- There must be an audible alert once an order is executed, and another one (different) for when an order is closed
I’m not a programmer in any way so hope this makes sense. I would want the source code and to be the publisher of the EA and I would also want some standard protections put which would stop the EA from trading if it senses any issues with the data i.e. <100bars etc.
If you are interested, please get in touch and we can look at a spec in more detail and which parameters to start with.