hello dear friends,
I want to request an EA programming of a very simple strategy.
It is based on the strategy of www.f0rexmagictrade.c0m
The manual can be downloaded here: http://www.2shared.com/document/EbhaWV77/fmt.html
The strategy:
Time = NY session (13:00 GMT), TF = 1H, Currency Pair = EurUsd,
Normally (if there aint any big news releases) at the beginning of NY session the market retraces a little bit in the opposite direccion of the last candles direccion.
Hereby the last candles difference between open and close must be bigger then 3-5 Pips. The retracement mostly is bigger then 15 Pips.
So, if the 12:00 GMT (7:00 – 7:59 AM EST) candle closes bearish and has a body of at least 5 Pips, open a long trade at 13:00 GMT (8:00AM EST) with target of +15 Pips.
If the 12:00 GMT (7:00 – 7:59 AM EST) candle closes bullish and has a body of at least 5 Pips, open a short trade at 13:00 GMT (8:00AM EST) with target of +15 Pips.
I did a manual test on Alpari.uk from May 31 until July 15 going with TP 15 Pips, trading all days, even on news release days,
I got
2 non trading days (open-close of candle were very small)
3 Loosing days
29 winning days
External settings of EA:
- “GMT Offset” (ex. +1.0 Alpari)
- “Minimum difference between open-close of 12:00 GMT candle” (ex. 5.0 Pips)
- “SL” (can also be hidden) (ex. 45.0 Pips)
- “TP” (can also be hidden) (ex. 15.0 Pips)
- “Lotsize” (ex. 1.00 Lots… 0.01 Lots)
- “Magic” (ex. 998877)
Another exit logic could be a trailing stop with setting SL = (break even + 1.0 Pips) once 15 Pips are reached
- “Trailing Stop and break even” (ex. 15.0 Pips)
Logic of the EA:
Check time (13:00 GMT) = true;
Check TF (1H) = true;
Check Symbol (EurUsd) = true;
If 12:00 GMT candle closes bullish,
If candle body = > “Minimum difference between open-close of 12:00 GMT candle”,
Then open SELL at 13:00 GMT (Lotsize, SL, TP, Magic)
Check time (13:00 GMT) = true;
Check TF (1H) = true;
Check Symbol (EurUsd) = true;
If 12:00 GMT candle closes bearish,
If candle body = > “Minimum difference between open-close of 12:00 GMT candle”,
Then open BUY at 13:00 GMT (Lotsize, SL, TP, Magic)
Modify SL:
If “TP” > “Trailing Stop and break even” and
current price > (entry price + 15.0 Pips)
then set SL = Breakeven+1.0 Pips
Close trade:
If trades are still open at 17:00 GMT close all trades with Magic# of this EA
Chart Messages:
-if current Time is NOT 13:00 GMT -> no time to trade, waiting for 13:00 GMT...
-if Symbol is NOT EurUsd -> wrong currency pair, use EurUsd
-if TF is NOT 1H -> wrong time frame, use 1H
-if SL is modified by EA -> SL modified to BE+1Pip
Can someone code this EA for me and the community here?
Thank you very very much
Samtarra![]()



Reply With Quote
