VS2019 C++ DLL Strategy error

How to create strategies and indicators
Message
Author
imamushroom
Posts: 28
Joined: Wed Jan 20, 2016 2:52 pm

VS2019 C++ DLL Strategy error

#1 Postby imamushroom » Sat Mar 20, 2021 3:47 pm

Hello,

I've recreated the ObjectsTest example and made sure it compiles clean. It does.

Next, I added a State.h and State.cpp to the ObjectsTest.cpp file which contains a class and methods. Now I'm getting a lot of errors like:

Code: Select all

Severity   Code   Description   Project   File   Line   Suppression State
Error   C3861   'iTime': identifier not found   StrategyTest   C:\Users\andre\source\repos\StrategyTest\StrategyTest\State.cpp   19   


iTime is contained in the StrategyUnitInterface.h file which is 2 levels above. No namespaces are in use to my knowledge and I thought StrategyUnitInterface.h and TechnicalFunctions.h would define the functions globally. Clearly, this isn't the case so how do I access the FT4 api from within my class.

I've tried iTime, ::iTime and StrategyUnitInterface::iTime but these don't work.

Help! I'm stuck.

Thanks.

Return to “FT API”

Who is online

Users browsing this forum: No registered users and 1 guest