Congratulations on an awesome application.
I am trying to create an MA indicator using C++.
It compiles ok. I've dropped the dll in the indicators directory but it is not available to FT.
The LOGS directory has a file - ForexTester.log and I see this line in it -
.2009.08.09 22:01:30 (TDllIndicator.create) Can not load indicator MyMA.dll, have error: Can not get "ReplaceStr" proc address
Looks like I've missed something out. Any help or ideas greatly appreciated.
Can not get "ReplaceStr" proc address
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 pm
Re: Can not get "ReplaceStr" proc address
numbercruncher wrote:Congratulations on an awesome application.
I am trying to create an MA indicator using C++.
It compiles ok. I've dropped the dll in the indicators directory but it is not available to FT.
The LOGS directory has a file - ForexTester.log and I see this line in it -
.2009.08.09 22:01:30 (TDllIndicator.create) Can not load indicator MyMA.dll, have error: Can not get "ReplaceStr" proc address
Looks like I've missed something out. Any help or ideas greatly appreciated.
You should make some procedures visible for Forex Tester defining them in EXPORTS section including ReplaceStr procedure. For C++ (I think you use this language) you need to attach a file like this to a project (this is for strategy) see lesson 1:
LIBRARY DemoStrategy
EXPORTS InitStrategy
DoneStrategy
ResetStrategy
GetSingleTick
ReplaceStr
IntrfProcsRec
Hasta la vista
Mike
Mike
-
- Posts: 2
- Joined: Sun Aug 09, 2009 4:08 pm
-
- Posts: 23
- Joined: Mon Jul 12, 2010 12:41 pm
Forgive me for resurrecting this post but I have the same problem trying to install an indicator that I made. Following the example in the Ishimoku.def file my def file contains
The only functions I have in my cpp file so far are Init and Calculate.
When I try to install that .dll file I get the same message as numbercruncher
I have disabled the incremental linking and I have added the .def file in Project->Properties->Configuration Properties->Linker->Input->Module Definition File
I am using Forex Tester 2.5 and the project is made with Microsoft Visual C++ 2010 Express. Any help please?
Code: Select all
LIBRARY ROUNDNR
EXPORTS Init
Calculate
ReplaceStr
IntrfProcsRec
The only functions I have in my cpp file so far are Init and Calculate.
When I try to install that .dll file I get the same message as numbercruncher
I have disabled the incremental linking and I have added the .def file in Project->Properties->Configuration Properties->Linker->Input->Module Definition File
I am using Forex Tester 2.5 and the project is made with Microsoft Visual C++ 2010 Express. Any help please?
Return to “Programming lessons”
Who is online
Users browsing this forum: No registered users and 18 guests