Hi guys
I recently found the attached EA (MQ5) and I want to modify it as well as to convert it for an MT4 platform.
The EA is:
I recently found the attached EA (MQ5) and I want to modify it as well as to convert it for an MT4 platform.
The EA is:
- Using Moving Average (MA) (in this case MA8)
- Placing a Long (Buy) trade when the MA is increasing upwards and the price closes above it and placing a Short (Sell) when MA is decreasing downwards and the price is close below it.
- Using Average Directional Movement (ADX) with period 8 to help determine whether the market is trending or not.
- Has a Stop loss of 30 pips, and Take profit (TP) of 100 pips.
- Looking for Buy/Sell opportunities only after a new bar has been formed and opening a Buy position if the Buy conditions are met and there is no buy trade already open for that pair, and opening a Sell position when the Sell conditions are met and there is no sell trade already open for that pair.
The modifications I am asking assistance on are as follows:
- The trade will only be opened when the price of previous bar closes above or below the MA and thereafter it wont be trying to place trades on every new bar even if the other conditions are met.
- Create and send push message to mobile phone, when the conditions are meet for the pair under review.
- There is a trailing Stop Loss (TSL) after reaching 50% of initial TP and the TSL is XX pips below the MA.
- The +D/-D of the ADX at the time of placing trade, should be above the level 5 (will this work or possible).
- The lot size can be changed and still open positions. (Currently if I change the lot size in the code or through inputs it wont open any trades).
- As I mentioned earlier I would want another version in MQ4.
Please may you help me out. Many thanks in advance.
Regards
Unexp. Coder
Attached File(s)
my_first_ea.mq5
12 KB
|
346 downloads