Can not find or load strategy.dll

How to create strategies and indicators
Message
Author
eliasw
Posts: 8
Joined: Sun Feb 09, 2014 2:23 am

Can not find or load strategy.dll

#1 Postby eliasw » Sun Feb 09, 2014 6:47 pm

I first made a strategy that was installed perfectly.
Now when I made another strategy in exactly the same way, when I try to install it I get a popup saying:

Can not install strategy, file will be deleted.
Have error: Can not find or load "strategy.dll".

What is that strategy.dll? My strategy dll file is called strategy_c.dll.

eliasw
Posts: 8
Joined: Sun Feb 09, 2014 2:23 am

#2 Postby eliasw » Mon Feb 10, 2014 3:07 am

I tried it once more. Also reinstalled FT and restarted Windows. The same error.
BTW I'm using C++ with VS 2005. But as I said it worked the first time.
How can FT ask for strategy.dll (I searched for it) when there is no such file even after a clean reinstall?
Please help! I'm unable to use FT.

eliasw
Posts: 8
Joined: Sun Feb 09, 2014 2:23 am

#3 Postby eliasw » Mon Feb 10, 2014 1:15 pm

Problem solved.

The error message "Can not find or load strategy.dll" made me think that the problem must be in the installation or a bug in FT. However when I commented out code in my strategy I found that this global declaration caused it:
int bars = Bars();
Of course that initialization must be in InitStrategy().

It would be nice with better error messages!


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 20 guests