Drawing rectangle with C++ API

How to create strategies and indicators
Message
Author
guilder77
Posts: 1
Joined: Thu Aug 23, 2012 2:41 am

Drawing rectangle with C++ API

#1 Postby guilder77 » Thu Aug 23, 2012 2:59 am

Hello,

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.

Return to “FT API”

Who is online

Users browsing this forum: No registered users and 20 guests