Results 1 to 1 of 1
 0 Attachment(s)    

Thread: Coding an EA from a simple manual strategy

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    3

    Thumbs up Coding an EA from a simple manual strategy

    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
    Last edited by Samtarra; 07-17-2011 at 12:52.

Similar Threads

  1. Need Help With Simple Coding.
    By Rob Taylor in forum MQL programming
    Replies: 0
    Last Post: 05-26-2015, 23:29
  2. Correlation JPY Manual Strategy with control Panel
    By advisor in forum Commercial manual systems
    Replies: 0
    Last Post: 08-16-2014, 11:55
  3. NEEED HELP FOR CODING RENKO STRATEGY
    By LUHAN in forum Ideas for expert advisors
    Replies: 1
    Last Post: 08-04-2012, 23:56

Tags for this Thread

alpari, breakeven, candles, coding, ea programming, eurusd, manual, news, pips, programming, request, simple, stop, strategy, test, trading, trailing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •