Save the value of the initial deposit to a global variable. Create another global variable that equals the delta with the value you have defined (first rectangle). And then according to the formula.
If equity == initial deposit + delta, then certain action.
If equity == initial deposit + delta*2 (second rectangle), then specific action.
datetime Tim=D'23:00';
int Cur_Hour=Hour(); // Серверное время в часах double Cur_Min =Minute(); // Серверное время в минутах double Cur_time= Cur_Hour + Cur_Min/100; // Текущее время if (Cur_time>=20.00&&Cur_time<=20.00&&order==false)
{
ticket=OrderSend(Symbol(),OP_BUYLIMIT,0.1,Bid-Spread,2,Bid-Spread-SL,Bid, Tim);
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Save the value of the initial deposit to a global variable. Create another global variable that equals the delta with the value you have defined (first rectangle). And then according to the formula.
If equity == initial deposit + delta, then certain action.
If equity == initial deposit + delta*2 (second rectangle), then specific action.
Somewhere around yes. Looks like - no stops?
It's a kamikaze type of advisor. For true gamblers.))) Or pan or propane.)))
It's a kamikaze type of advisor. For true gamblers.))) Or hook or crook.)))
I'm not a novice programmer for a few years, I rewrote the indicator from another language and came across a redrawing.
I am a beginner, I have rewritten the indicator in another language:
the continuation of the code:
the last part of the code:
This option gives an error:
the last part of the code:
Why so many arrays?