I'm converting an indicator from mt4 to forex tester with use of c++ API. I'm supposed to draw a rectangle, but when I use
Code: Select all
ObjectCreate(s, obj_Rectangle,0,0,0,0,0);
I get an error - error C2065: 'obj_Rectangle' : undeclared identifier. I've looked in IndicatorInterfaceUnit.h (v1.13), and in TObjectTypes it ends with obj_TextLabel and indeed doesn't contain obj_Rectangle. On the other hand, Delphi version - IndicatorInterfaceUnit.pas (also v1.13) - has more object types, including obj_Rectangle. Is it just a oversight? Is there a newer version of the API for c++ available? Is there some not added coding beneath it or will it work when I just simply add obj_Rectangle to header file?
---------------
Yep, I added additional objects from delphi version of API, and it did the trick.