how to create a custom code based on this plan ?

 

hello, I need a custom code for mql4 following this plan of martingale:

1-a trade is opened using lots 0,01 for example.

 

2-a trade closes lets say ends with -10.00 usd of loss.

 

3-the next trade opened will be 0.02 as soon it reaches the 10.00 usd it will close the trade and wait for the next signal and use the default lot 0,01

 

4-if  this new trade of lot 0.02 won't be in profit, and lose let's say -5,00.

 

5-the next trade will be 0.04 and as soon this trade reach 15,00 usd positive the trade will close and will wait the next signal and return to the original default lot value 0,01

 

6-the trades will be opened with martingale in the next signal and next and will return only  to the default lot only when recover all the loss for the specific pair.

 

the custom base code is this one:

 

**

 

    > double MM_Size() //returns trade size {   //your code here 

    > return(0.1); }

 

**

 

It seems that you don't know how to code at all in MQL.

If that is the case you can either take the time (several months) to learn the basics of learning to code your own EA, or you can hire someone in the Freelance section to code it for you.

Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2022.11.12
  • www.mql5.com
The largest freelance service with MQL5 application developers
 
neozbr: I need a custom code for mql4 following this plan of martingale:
  1. Hedging, grid trading, same as Martingale.
              Martingale, Hedging and Grid : MHG - General - MQL5 programming forum (2016)

    Martingale, guaranteed to blow your account eventually. If your strategy is not profitable without, it is definitely not profitable with.
              Martingale vs. Non Martingale (Simplified RoR vs Profit and the Illusions) - MQL5 programming forum (2015)

    Why it won't work:
              Calculate Loss from Lot Pips - MQL5 programming forum (2017)
              THIS Trading Strategy is a LIE... I took 100,000 TRADES with the Martingale Strategy - YouTube (2020)

  2. You have only four choices:

    1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

    2. Beg at:

    3. MT4: Learn to code it.
      MT5: Begin learning to code it.

      If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

    4. Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
                Hiring to write script - General - MQL5 programming forum (2019)

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
              No free help (2017)

Reason: