Help with function OrderModify () - I have set conditions under which modification of parameters of an open position should take place, but at test error 4108 occurs. Invalid ticket number... But if we introduce Alert, it will clearly say that the ticket number has reached modification block. And there's only one order - what's wrong?
Lim1 15.04.2010 00:22 Помогите кто нибудь с функцией OrderModify () - задал условия при которых должна происходить модификация параметров открытой позиции, но при тестировании происходит ошибка 4108.
Change the type of the variable you are assigning the ticket to - from double to int.
Necron>>: Здравствуйте. Подскажите пожалуйста как удалить группу объектов (трендовые линии), имена которых начинаются с "60m".
Cycle through all objects if the name begins with "60m" and delete them,
useful functions :
stringObjectName( int index)
Функция возвращает имя объекта по порядковому номеру в списке объектов.
intObjectsTotal( int type=EMPTY)
Возвращает общее число объектов указанного типа на графике.
stringStringSubstr( string text, int start, int length=0)
Извлекает подстроку из текстовой строки, начинающейся c указанной позиции.
Функция возвращает копию извлеченной подстроки, если возможно, иначе возвращается пустая строка.
Ну может ещё пригодиться для определения сколько символов в имени
intStringLen( string text)
Возвращает число символов в строке.
boolObjectDelete( string name)
Удаление объекта с указанным именем.
Somebody give me a link to an EA which trades by placing orders backwards from open orders. I've seen it here in the codebase, but can't find it.... Thanks
Invalid ticket number... But if we introduce Alert, it will clearly say that the ticket number has reached modification block. And there's only one order - what's wrong?
------------------------------------------------------------------------------------------------------------
double A = OrderTicket(),
---------------------------------------------------------------------------------------------------------------
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*15,OrderTakeProfit(),0,Blue);
---------------------------------------------------------------------------------------------------------------
Can someone help with OrderModify ()
Lim1 15.04.2010 00:22
Помогите кто нибудь с функцией OrderModify () - задал условия при которых должна происходить модификация параметров открытой позиции, но при тестировании происходит ошибка 4108.
Change the type of the variable you are assigning the ticket to - from double to int.
How do I change the colour of the buffer?
Здравствуйте. Подскажите пожалуйста как удалить группу объектов (трендовые линии), имена которых начинаются с "60m".
Cycle through all objects if the name begins with "60m" and delete them,
useful functions :
>>How do I change the colour of the buffer?
If I understand correctly, you mean the colour of the buffer of the custom indicator? Then via indicator_colorN https://docs.mql4.com/ru/basis/preprosessor/compilation
Циклом перебираете все объекты если имя начинаеться на "60m" удаляете,
полезные функции :
Thank you, it's sorted.
=))
Наверное, ДЦ не позволяет открывать ордера со стопами. Т.е. сначала надо открыть ордер, а потом выставить стопы.
You were right. Thank you!Thanks