ObjectGetInteger with OBJPROP_TYPE seems slow
Try to avoid objects and use array, structs or classes instead.
Your topic has been moved to the section: Technical Indicators — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Robert Gerald Wood: Always seems to be the slowest part of any indicator or script I create.
You already know the type of any objects you create. No need for the call.
For all other objects, you only need to read the name and type once on the first tick. After that only process object events when they happen.
Hello,
Grasping at straws here, but does anyone know a faster way to get an Objects type than good ol' ObjectGetInteger(chart_id, objname, OBJPROP_TYPE) ?
Always seems to be the slowest part of any indicator or script I create.
Thanks in advance :)