Good evening ! Could you please tell me where the error is... ? I am creating a graphical text object :
int Время_фрактала=Time[ФрВверх]; // Определение места обозначения фрактала по времениdouble Цена_рисунка=High[ФрВверх]; // Определение места обозначения фрактала по ценеstring Номер_свечи = Время_фрактала ; // Назначение имени метки надписи фракталаObjectFind(Номер_свечи);
ObjectCreate(Номер_свечи,OBJ_TEXT,0,Время_фрактала,Цена_рисунка+10*PointX); // Создание надписи исторического Фр вверхObjectSetText(Номер_свечи,"Фривв",14,"Arial",DarkViolet); // Задание свойств надписиint Error=GetLastError(); // Назначение имени функции проверки ошибок
Время_фрактала=Time[i]; // Рисуем Фр-отмену для Фр Вверх
Цена_рисунка=High[i];
отмена_вниз = Время_фрактала;
ObjectCreate(отмена_вниз,OBJ_TEXT,0,Время_фрактала,Цена_рисунка+2*PointX); // Создание надписи номера свечи С1ObjectSetText(отмена_вниз,"Отмена дввниз",14,"Arial",Yellow); // Задание свойств надписи
Error=GetLastError(); // Назначение имени функции проверки ошибокPrint("Error рисунка = ", Error);
By the time they should be drawn, these two objects coincide. And I want to draw them one below the other, which I do by spreading them over different horizons. But in the end the second object is drawn at the level of the first, and the first object disappears. And I get error 4200 that the object already exists. But I've spread them out on different levels. Is there something wrong...?
Good evening ! Could you please tell me where the error is... ? I am creating a graphical text object :
The object is drawn. Then I create another object:
By the time they should be drawn, these two objects coincide. And I want to draw them one below the other, which I do by spreading them over different horizons. But in the end the second object is drawn at the level of the first, and the first object disappears. And I get error 4200 that the object already exists. But I've spread them out on different levels. Is there something wrong...?
Objects are not identified by price, colour, type, etc., but by name. In your case, you assign the name to the time. If the time is the same, then the object names ("candlestick_number" and "undo_down") will naturally be the same. This will result in an error 4200.
MaxZ: Objects are not identified by price, colour, type, etc., but by name. In your case, you assign the name to the time. If the time is the same, then the object names ("candlestick_number" and "undo_down") will naturally be the same. This will result in an error 4200.
Thanks Max ! Assigned the name to the price level - and everything worked )
The leverage used in the client terminal is 200. Is it possible to decrease it to, say, 20 when setting an order using the script? What does the parameter dMyLeverage mean in the scripts?
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.
Good evening ! Could you please tell me where the error is... ? I am creating a graphical text object :
The object is drawn. Then I create another object:
By the time they should be drawn, these two objects coincide. And I want to draw them one below the other, which I do by spreading them over different horizons . But in the end the second object is drawn at the level of the first, and the first object disappears. And I get error 4200 that the object already exists. But I've spread them out on different levels. Is there something wrong...?
Good evening ! Could you please tell me where the error is... ? I am creating a graphical text object :
The object is drawn. Then I create another object:
By the time they should be drawn, these two objects coincide. And I want to draw them one below the other, which I do by spreading them over different horizons . But in the end the second object is drawn at the level of the first, and the first object disappears. And I get error 4200 that the object already exists. But I've spread them out on different levels. Is there something wrong...?
Objects are not identified by price, colour, type, etc., but by name. In your case, you assign the name to the time. If the time is the same, then the object names ("candlestick_number" and "undo_down") will naturally be the same. This will result in an error 4200.
Thanks Max ! Put the name at the price level and it all worked out )
Dangerous!!! Because the price level can repeat itself and you'll run into the same rake...
I assign time to one object's name and price to another object's name. Time is never the same as price.
Got it... For two sites, it's more or less acceptable! :)) But I would never do that! ;D
this is how the orders are opened:
I want to make the script calculate a lossless script like this:
if
if
if
how to insert this code to determine the line without loss in the EA:
made it like this and it worked, just like I wanted it to)
1, Window with ticks. Is there any way to set it to fill to full depth?
2, Is there any way to disconnect the terminal from the server without closing it? (Switching to a non-existent account does not work).