noob1: When checking on historical data (D1), there are no market orders, although in the history pending orders are placed and deleted.
See the log, maybe because of errors it doesn't open! Or the price does not reach the target before removal. Try to increase the time of deletion! You can try it on the hour, so you don't have to wait so long! By the way there are never any ticks at 0:00.
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.
When checking on historical data (D1), there are no market orders, although in the history pending orders are placed and deleted.
Guys, we need help, can this code be rewritten from a pro's point of view to make it better
if(AccountBalance()>=20)
{
Lot=0.02;
}
if(AccountBalance()>=30)
{
Lot=0.03;
}
if(AccountBalance()>=50)
{
Lot=0.05;
}
if(AccountBalance()>=70)
{
Lot=0.07;
}
if(AccountBalance()>=100)
{
Lot=0.10;
The switch operator?
guys need help, can this code be rewritten from a pro's point of view to make it better
You can just multiply it by 0.001 :)
but it's going to be a loaded program, too, you mean.
why the code does not appear in the message
when inserting the SRC
You can just multiply it by 0.001 :)