How to build martingale EA with TP shown
-
Can anyone help by building an example of Martingale EA with TP shown?
-
What do you exactly mean by 'TP shown'? Do you mean visible on chart maybe?
-
@l-andorrà Exactly, sir. Take Profit price and line are not visible. How can i make it visible, sir?
-
Well, just specify any distance in pips in your 'buy/sell now' blocks and they will be visible on the chart as soon as the trade is open.
-
@l-andorrà pls see the example of this martingale. The Buy/Sell now block selected No SL and No TP
and i have been testing it in Demo account but i need TP visible on the chart. I use Check profit (unrealized) block as TP setup. Screenshot_20240115_120633_Chrome.jpg
-
Can you please share the link to the project instead? That would help to be reviewed.
-
@l-andorrà Apology for my limited understanding, Sir. How can I share the link to the project? Pls guide me to get it done. Thanks
-
@Khun-Som-Ath This is the way to do it:

-
@l-andorrà Dear Sir,
Here is the link of my martingale EA. Hope help me solve the problem.
https://fxdreema.com/shared/FYnhu2iCThanks
-
Ok. Some hints first. You can remove blocks 12, 20 and 28. They are redundant. And as I guessed, you specified no distance in the TP display menu. Why don't you select any? That will definitely show the TP line on chart.

-
@l-andorrà
Dear Sir,I have done what you told me but when i tested it on Demo account, there are many TP visible. It means one position, one TP line, two positions, two TP lines. To be honest, i want my martingale EA to show only one TP with all positions and close all positions at the same when TP hits. Could you guide me more?
Thanks
-
It is far easier to forget about the lines and close all when a set profit is reached...
-
@jstap Dear Sir,
if TP line is not visible it is ok but i do need to see the Take Profit price coz it helps me to make some adjustment when market is high volatile but my martingale EA both TP price and TP line are invisible.Thanks
-
@jstap It is really helpful if i know at what price all positions are closed. Either TP line or TP price is visible would be perfect for me. Can you guide me how to solve this problem?
Thanks
-
I have never tried, but you can likely set this up in a trail block. Give it a try and let us know what happens...

-
@jstap Dear Sir,
I have tested but it did not give me what i want. Let me give you the details of my EA. Well, it is a martingale EA for XAUUSD and the input as follow:
- Lot: 0.01
- Lot Multiplier: 2.0
- Distance Pips: 100pips
- TP: 100pips
- Max Trade: 20 (not know how to do it yet)
I want it to show TP and close all positions at the same time when TP hits.
Thanks
-
Set up the Martingale 1st, set 1st trade, however, you want it to be set, in a separate tree, use pink blocks, for each trade, pips away buy/sell using last trade lot in a loop and multiplying it in adjust (+multiply constant)
-
@Khun-Som-Ath
Ok, to do this you first need the BE, then you can add your TP to this. Here is a link with which you can calculate the BE SEPARATELY for buy and sell positions. You can also calculate the BE for both together, but that is more complicated. -
@RGoo, there is no 1st trade in that, and this is a lot more complicated way to complete Martingale trades.
-
@jstap yes, it could be, it was just a way of thinking