仕事が完了した
指定
Hello to all. I wish to ask if someone can write me an expert adviser that is based around hedging: with a 20 pip gap between buy and sell trades.
The strategy:
If no orders are presently active including buy/sell stops. Then a trade is initiated depending on the 200 EMA (If above, a BUY order is placed, If below, a SELL order is placed)
The lot calculation is based on the account balance. £10-20,000 = 0.1 lots, £20-30,000 = 0.2 lots, £30-40,000 = 0.3 lots etc etc. (this can be edited if desired by user).
Once EA is activated it immediately starts working and places either a Buy or Sell order based upon whether the current market is trading above or below the 200 EMA, it will also place a Buy or Sell Stop order at a 20 pip gap between the first order.
Each time a BUY/SELL STOP is placed it always increases the lot size by an additional of whatever the original buy/sell order was. For example; Buy at 0.1 lots, the next order is 0.2, 0.3, 0.4, 0.5. Etc Etc. If the initial trade was at 0.6 lots, then the next STOP orders placed will add 0.6 lots, 0.6, 1.2, 1.8, 2.4, 3.0, 3.6 etc etc.
For example; EUR/USD price = 0.95705, price is BELOW 200 EMA, account balance is £32,350, EA Places a SELL order at 0.95705 at 0.3 lots; then immediately places a BUY STOP order at 0.95905 at 0.6 lots.
If the BUY STOP is triggered, immediately a SELL STOP is placed 20 pip gap (Price of 1st trade 0.95705) now at 0.9 lots etc etc etc
Target profit is based on a percentage of the account balance; so for example £10-20,000 balance has a target profit of 1% = £100. £20-30,000 = 1% = £200 target profit. £30-40,000 = 1% £300 target profit etc etc (this can be edited to users desired target profit if wants to increase target profit)
Once target profit has been triggered, EA closes ALL orders and open trades to start a fresh.
The EA Immediately begins a new set of trades and stop orders depending on the 200 EMA and account balance.
It will hold orders open over weekends
It can be used on any time frame and any FOREX pair.
I hope this makes sense and if it is at all possible to create this EA for me would be very much appreciated.
Thank You