problem with take profit

William Roeder  
  1. Matej Cehelsky: I have a martingale strategy 

    Martingale is not a trading strategy. It is a sizing plan.

  2. 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)

  3. Matej Cehelsky: do you know how?

    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)

Nardus Van Staden  
Martingale sizing plans cannot work in a EA in this way, in order to do that, you'll need to create an Ea that allows you to take multiple positions and place 1 stop and Tp. Not that i know why you would want to do that in the 1st place. Trading is about Risk management, and not about how many trades you can have open in a day or at once. Rather work it simple with a RSI EA combined with a MACD and ATR, in this way your entries are much more accurate and you are allowed the freedom of day to do what you want, and have a profitable Ea taking care of your trades. Hope it helps mate