Can you help me with this martingale?
With this martingale, the orders are doubling. 0.2 / 0.40 / 0.8
I would like it to be like this: 0.20 / 0.21 / 0.22.
That is, add only 0.01 to each martingale.
Thank you in advance.
Can you help me with this martingale?
With this martingale, the orders are doubling. 0.2 / 0.40 / 0.8
I would like it to be like this: 0.20 / 0.21 / 0.22.
That is, add only 0.01 to each martingale.
Thank you in advance.
I created this EA but it doesn't open orders, is there any way to check if there is something wrong? o Because it is not opening orders.
Thank you very much in advance...
@jstap Thank you very much for the help.
I made a new project with only the due date as a goal to put in an indicator, not in an EA,
In the EA it works normally, when the license expires it removes the Robot from the chart, through this line of code " (ExpertRemove() ".
How do I put this same code in an indicator? The image and complete code are attached.
Thank you very much in advance...
if (TimeCurrent() > D'2023.09.09' || TimeLocal() > D'2023.09.09')
{
Alert ("The trial version has expired at "+TimeToString(D'2023.09.09', TIME_DATE)+"");
ExpertRemove();
}

How can I partially close an order?
Example: I entered with a lot of $1.00, when I reach 50% of the distance from the desired target profit, close 50% of the value, that is, $0.50, and the other $0.50 is left open to get the other 50% of the desired target.
can you help me?
How do I open a buy or sell one from a variable that is tied to a draw line.
follow the image and design.
@l-andorrà
0_1651347455534_2022_Entrada_Martelo.mq5
I sent the image and the project.
Can you show me how to open a sale on this Draw Line Horinzontal, I marked this line in a variable.
That is, the Draw line = Variable.
How to configure :
(Take profit) On the draw line (top)
(Stop Loss) On the draw line (Bottom) ?

@jstap 0_1650920961652_Rascunho.mq4
I sent the EA to see if you can help me.
@adeildo said in How do I put Stop Loss on a draw line?:
@jstap
I want to put take Profit in the Top priceI want to put Stop Loss at the Bottom price
@jstap
I want to put take Profit in the Top price
I want to put Stop Loss at the Bottom price

I've already made the lines, put the references in a variable, but I can't put them in Stop Loss and Take profit. as shown in the figure circled in yellow.

I've already made the lines, put the references in a variable, but I can't put it in the BUY.

How do I put Stop Loss on a draw line?
Example:
I put 4 draw line:
Draw line (1) at the top of a candle.
Draw line (2) on the bottom of a candle.
Draw line (3) target above the top of the Draw line (1)
Draw line (3) target below Draw line background (2)
How do I place stop loss on Draw Line (3) ?
How do I place stop loss on Draw Line (4) ?
How do I get a minimum and a maximum of 6 candles and open a minimum sale of these candles and a maximum purchase of these candles?
I make a license to use some EA, for 1 month, 1 year:
since I have fainted ...
Can someone show me how to do an EA with MACD indicator?
Thank you very much in advance...