#import "stdlib.ex4"string DoubleToStrMorePrecision(double number, int precision);
#import
double a = 1.15, b=100.0;
double e = a * b;
Alert(" e="+DoubleToStrMorePrecision(e,16)+","+DoubleToStr(e,8));
Can you tell me how to delete a pending order on a previous candlestick if I need to reopen the pending order on a new one?
A new bar is defined as
staticdatetime New_Time=0; // Время текущего бара
New_Bar=false; // Нового бара нетif(New_Time!=Time[0]) // Сравниваем время
{
New_Time=Time[0]; // Теперь время такое
New_Bar=true; // Поймался новый бар
}
I set the pending order in this way
if ( New_Bar )
{
OrderSend(Symbol(),OP_BUYSTOP,NormalizeDouble(Lotpers,5),Ask+OrderStep*Point,100,0,0,NULL,MagicNumber,0,clrNavy);
Торговая деятельность в платформе связана с формированием и отсылкой рыночных и отложенных ордеров для исполнения брокером, а также с управлением текущими позициями путем их модификации или закрытия. Платформа позволяет удобно просматривать торговую историю на счете, настраивать оповещения о событиях на рынке и многое другое. Открытие позиций...
Numbers in computer memory are represented in binary code, in which we are used to exactly decimal numbers in general case it is difficult to represent them. If you round the left number to 8 decimal places, you will get the right number. Get used to it...
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.
Why does the tester always stop at one date when testing, but in the log it writes this:
2017.11.11 10:08:50.058 2017.07.11 00:00:00 mslTorg20 OnTester returns 0.000000000000000000
Hi all.
How do I get rid of the following comment when compiling:
possible use of uninitialized variable 'SL1'
SL1=0;
SL1=0;
Thank you, that helps.
Also, can you tell me please,
which sign means either
if (a or b)
Thank you, that helps.
Also, can you tell me please,
what sign means either
if (a or b)
if (a || b)I thought it was an "E."
what's the "E" sign then?
already found it, thank you.
Is there any way to set up a chart to open with the correct timeframe on the open button? Thank you
We have the simplest code
Alert outputs
Alert: e=114.9999999999999858,115.00000000
How come?
Greetings!
Can you tell me how to delete a pending order on a previous candlestick if I need to reopen the pending order on a new one?
A new bar is defined as
I set the pending order in this way
mql4Alert: e=114.9999999999999858,115.000000 How so?