Results 1 to 3 of 3
 0 Attachment(s)    

Thread: MA martingale ea

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    20

    Thumbs up MA martingale ea

    i have been trying to make one simple ea but nobody is helping me . below is the logic kindly can you help me with it.

    indicator. : Moving average
    the entire candle should close above Moving averege to buy signal
    the entire candle should close below Moving averege to sell signal.

    lot size should multilpy if the total previous trades are in loss.
    when on trade comes to profit and the net profit more than the net loss then it should go back to original volume.

  2. #2
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by surtoday View Post
    i have been trying to make one simple ea but nobody is helping me . below is the logic kindly can you help me with it.

    indicator. : Moving average
    the entire candle should close above Moving averege to buy signal
    the entire candle should close below Moving averege to sell signal.

    lot size should multilpy if the total previous trades are in loss.
    when on trade comes to profit and the net profit more than the net loss then it should go back to original volume.
    Hi surtoday,

    See here : MA Martingale EA

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    20

    Default

    Excellent work.i never thought it would be that fast. There is one mistake in this. here it how goes.
    set 1 1) 0.1 buy = +67
    refresh order set 2 2) 0.1 sell = -4
    3) 0.2 buy = -16.20
    4) 0.3 sell = -15.80
    5) 0.4 buy = -22.5
    6) 0.5 sell = -30.60
    7) 0.6 buy = 101.53
    refresh order set 1) 0.1 buy = -13.5
    2) 0.2 sell = -10
    3) 0.3 buy = 4
    calculate the profit (-13.5-10 = -23.5 > 4)
    it is still in loss so increase the volume.
    4) 0.4 sell = -12.20
    5) 0.5 buy = -19.80
    6) 0.6 sell = 146.49
    Calculate profit (-13.5-10-12.20-19.80 = -55.5 < (4+146.49= 150.50))
    refresh the volume set 3



    After1st trade in profit it should refresh list.
    from trade 2 it starts counting total loss and increases the volume according multiplying factors.
    once you get profit like in trade 7 total loss Minus total that profit . (in this example -4-16.20-15.70-22.5-30.6=-85.1 profit = 101.53 ) net is profit.
    so come to original volume.

    hope it explains the details.

Similar Threads

  1. RSI + martingale
    By noiahei in forum Ideas for expert advisors
    Replies: 1
    Last Post: 06-21-2010, 17:01
  2. (REQ) Martingale
    By 626mx in forum Ideas for expert advisors
    Replies: 2
    Last Post: 05-05-2010, 01:40
  3. New Martingale EA
    By shaya in forum Scripts and other tools
    Replies: 0
    Last Post: 06-24-2009, 06:50
  4. ATR MA Martingale EA
    By funyoo in forum Expert advisors live statements
    Replies: 0
    Last Post: 02-19-2009, 22:40

Tags for this Thread

candle, martingale, moving average, profit, simple, systems

Posting Permissions

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