Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 46
 8 Attachment(s)    

Thread: Add a martingale

  1. #31

    Default

    Quote Originally Posted by funyoo View Post
    Hi NICK35,

    You have to replace magic by Magic_Number.
    Hi funyoo thanks for help

    now my ea is ok as code (no error)

    but not double the size of lot after loss.

    I put all the string code exactly I think...
    Attached Files Attached Files

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

    Default

    Hi NICK35,

    Exceptionally, here is the code.
    Attached Files Attached Files

  3. #33

    Default

    Quote Originally Posted by funyoo View Post
    Hi NICK35,

    Exceptionally, here is the code.
    nr 1 man !!!! thanks

  4. #34
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    yes I know this method its called fartinggale lolololololol

  5. #35

    Default

    Quote Originally Posted by Perky_z View Post
    yes I know this method its called fartinggale lolololololol
    i can tollerate even 12 time loss consecutively !!!!!

    depend where you put the sl martingale..

  6. #36
    Junior Member
    Join Date
    Jan 2009
    Posts
    18

    Default

    Quote Originally Posted by funyoo View Post
    Note that this martingale is not conventionnal. The lots size is increased when there is a loss, and decreased when the is a profit. While it should start again at initial lots when the last serie of consecutive loss finishes on a win.

    If you have a function for a basic martingale, don't hesitate to post :

    After extern parameters, add :

    Code:
    extern double Lots=0.01;//|----------------------lots
    extern bool Martingale=false;//|-----------------martingale
    extern double Multiplier=2.0;//|-----------------multiplier martingale
    extern double MinProfit=50;//--------------------minimum profit to apply the martingale
    After start(){, add :

    Code:
       if(Martingale)CalculateMartingale();Balance=AccountBalance();
    At the end of the code, add :

    Code:
    void CalculateMartingale()
    {
       double InitalLots=0.01;
       double MinLots=MarketInfo(Symbol(),MODE_MINLOT);
       double MaxLots=MarketInfo(Symbol(),MODE_MAXLOT);
       if(Balance!=0.0)
       {
          if(Balance>AccountBalance())Lots=Multiplier*Lots;
          else if((Balance+MinProfit)<AccountBalance())Lots=InitalLots;
          else if((Balance+MinProfit)>=AccountBalance())Lots=Lots;
          if(Lots<MinLots)Lots=MinLots;
          if(Lots>MaxLots)Lots=MaxLots;
       }
       return(0);
    }
    hello this martingale doesnt remember accountbalance how can it remember accountbalance

  7. #37
    Junior Member
    Join Date
    Jun 2010
    Posts
    14

    Default

    Quote Originally Posted by funyoo View Post
    But I don't know how to use the extern Lots parameter as InitialLots.
    Hi funyoo,

    I haven't had time to read through the thread to see if you have found a solution, but here is what I would do:

    If you use a fixed lot size then you can just declare "Lots = InitialLots" in the initialization function.

    If you use a MM risk lot size, then in the function where you calculate the lot size, instead of declaring the lots as "Lots", declare it as "InitialLots".

    Chris

  8. #38
    Junior Member blueocean's Avatar
    Join Date
    Mar 2009
    Posts
    21

    Default

    Hi There,

    could you please post the indicator

    BarScalper MACD.ex4

    thanks

    blueocean
    Thanks

  9. #39
    Junior Member
    Join Date
    Jun 2010
    Posts
    14

    Default

    Quote Originally Posted by ebbenezer66 View Post
    I came across this awhile back and need advice on it, I've seen it work but legally I'm not able to use it in the states online anymore. It involves roulette and the martingale system. You clearly start with the minimum bet possible, choosing either red or black. As with the martingale system you plan to loose and then double your previous bet. By continuing to bet red or black until you win.
    That is actually how I got into trading Forex. I read an article on how to make money on the internet. In the article, this was there and above it was Forex. I tried both, but I only stuck with Forex, and I am not regretting my decision.

    The roulette thing sucks though. Most online casinos recognize what you are doing and ban you. And if you try it in an actual casino, they will pick you up over their shoulders and throw you straight out the door.

    Also, your risking losing your whole balance, just to get $1, or whatever your first bet was.

    Chris
    Last edited by chrisbenjy; 08-27-2010 at 21:02.

  10. #40
    Junior Member
    Join Date
    May 2010
    Posts
    15

    Default

    Hello Funnyo,

    I am still waiting for reponse for my previous post
    Please can you make that code
    sorry for english
    Thanks

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

add, change, color, demo, expert, expert advisor, experts, forex, guide, hedge, high, how to, ilan, index, learn, macd, magic, martingale, metatrader, mq4, online, profit, programmer, programming, real, simple, stop, strategies, strategy, system, thank you, time, trader, trading, trading forex, 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
  •