1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make this EA?

Discussion in 'Forex Trading Systems and Strategies' started by Leandro Baruch, Apr 29, 2011.

  1. Leandro Baruch

    Leandro Baruch Recruit

    Joined:
    Sep 13, 2010
    Messages:
    4
    Likes Received:
    0
    Hello guys!

    I have a indicator and want to makes it to trade automatic.

    Its a moving average, blue you buy, pink you sell.

    My idea is, the EA should open a position after the candles of H1 closes.
    Example, it closed and the MA is blue, so it open a buy order.

    Hold it until we see a H1 candle close and the MA turn pink. Then close buy and open sell.

    Since the indicador do not repaint after the candle closes, it will work fine.

    Is that dificult to create?

    Thanks
     

    Attached Files:

  2. Ben~J

    Ben~J Recruit

    Joined:
    Jun 10, 2011
    Messages:
    2
    Likes Received:
    0
    Hi Leandro!

    You can create it in StrategyTune (this program is free, don't need to install). Watch this, how to create MA Cross EA:


    As i guess in your example MA is blue, when current Close more than last Close price. And it's pink, when current Close less than last Close.
    So just need to compare MA with shift = 1 and MA with shift = 2.

    Look at MA.png attached, this is how Your strategy looks. Also You can add inputs for period and volume.
    You can load file MA.txt (attached) in StrategyTune, then just click yellow button and program will generate MQL code.

    Note: to use it You need to register (it's free).
     

    Attached Files:

    • MA.
      MA.png
      File size:
      23.3 KB
      Views:
      41
    • MA.txt
      File size:
      4 KB
      Views:
      20
    #2 Ben~J, Jun 11, 2011
    Lasted edited by : Aug 15, 2015
  3. Pharaoh

    Pharaoh Colonel

    Joined:
    Oct 3, 2007
    Messages:
    19,679
    Likes Received:
    2,229
    Interesting, but it requires setting up an account with Alpari NZ to get "free" access.
     
  4. Ben~J

    Ben~J Recruit

    Joined:
    Jun 10, 2011
    Messages:
    2
    Likes Received:
    0
    Yes, it took couple minutes and account opening is free
     

Share This Page