Выпущена бета-версия MetaTrader 4 Build 529 с новым компилятором - страница 119

 
stringo:

Повторяю. Мы делаем, как в пятёрке. Будьте добры применить ещё одну привязку - указать где в объекте находится "якорная" точка объета. В вашем случае правый верхний угол объекта.




Добрый день.

А почему у меня в в ME 880 ENUM_ANCHOR_POINT не распознается?

См картинку

UPD. Sorry, пропустил апдейт. В ME881 все ОК.

 

Re: OBJPROP_ANCHOR


Perhaps better than having 9 pre-set points would be OBJPROP_ANCHORX AND OBJPROP_ANCHORY (double type) that set the relative OFFSET of the anchor (from 0.0 - 1.0) from object corner. It would allow for example to set a custom anchor on a circle object. So OBJPROP_ANCHORX=0.5 & OBJPROP_ANCHORY=0.5 would set the anchor at the center of the object, OBJPROP_ANCHORX=0.25 and OBJPROP_ANCHORY=0.25 would set the anchor at a quarter of the object width and height. It would also give the ability to the programmer to construct complex objects from multiple simple objects with proper anchoring.

 
Еще вопрос, будет ли GlobalVariablesFlush() в новом МТ4?
 

Обращение к какой функции в новом МТ4 вызывает такое сообщение (CopyTime()??)? Код компилируется без ошибок и предупреждений. МЕ881

Спасибо

 
Wahoo:
Еще вопрос, будет ли GlobalVariablesFlush() в новом МТ4?
Да
 
Wahoo:

Обращение к какой функции в новом МТ4 вызывает такое сообщение (CopyTime()??)? Код компилируется без ошибок и предупреждений. МЕ881

Спасибо

Это группа CopyXXX функций - копирование из таймсерий в массив.

В ближайшее время реализуем

 
maximillion:

Re: OBJPROP_ANCHOR


Perhaps better than having 9 pre-set points would be OBJPROP_ANCHORX AND OBJPROP_ANCHORY (double type) that set the relative OFFSET of the anchor (from 0.0 - 1.0) from object corner. It would allow for example to set a custom anchor on a circle object. So OBJPROP_ANCHORX=0.5 & OBJPROP_ANCHORY=0.5 would set the anchor at the center of the object, OBJPROP_ANCHORX=0.25 and OBJPROP_ANCHORY=0.25 would set the anchor at a quarter of the object width and height. It would also give the ability to the programmer to construct complex objects from multiple simple objects with proper anchoring.

Did you see Object Panels in the MT5? No problem with anchoring
 
stringo:

Это группа CopyXXX функций - копирование из таймсерий в массив.

В ближайшее время реализуем



Спасибо.

Я правильно понимаю что SymbolInfoTick() тоже пока не работает? Код с ней тоже компилируется без ошибок и предупреждений но при запуске советника функция не работет и сообщений об ошибках как в случае с CopyXXX в журналах тоже нет.

 
maximillion:

Re: OBJPROP_ANCHOR


Perhaps better than having 9 pre-set points would be OBJPROP_ANCHORX AND OBJPROP_ANCHORY (double type) that set the relative OFFSET of the anchor (from 0.0 - 1.0) from object corner. It would allow for example to set a custom anchor on a circle object. So OBJPROP_ANCHORX=0.5 & OBJPROP_ANCHORY=0.5 would set the anchor at the center of the object, OBJPROP_ANCHORX=0.25 and OBJPROP_ANCHORY=0.25 would set the anchor at a quarter of the object width and height. It would also give the ability to the programmer to construct complex objects from multiple simple objects with proper anchoring.


Let's just have it working like MT5 at least. OBJPROP_ANCHOR is perfectly fine with me AS IS. The only issue is it still is not implemented properly. Labels just not acting right.
 
Wahoo:


Спасибо.

Я правильно понимаю что SymbolInfoTick() тоже пока не работает? Код с ней тоже компилируется без ошибок и предупреждений но при запуске советника функция не работет и сообщений об ошибках как в случае с CopyXXX в журналах тоже нет.

Вообще-то, SymbolInfoTick должна работать.

Разберёмся

GetLastError после вызова функции не проверяли?

Причина обращения: