Forex Tester Forum (Professional Training Software for Traders) Forum Index Forex Tester Forum (Professional Training Software for Traders)

Back to main site   Risk disclosure
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Programming in Visual C++ 2005

 
Post new topic   Reply to topic    Forex Tester Forum (Professional Training Software for Traders) Forum Index -> Programming lessons
View previous topic :: View next topic  
Author Message
forextester



Joined: 19 Feb 2009
Posts: 33

PostPosted: Sun Mar 08, 2009 11:22 am    Post subject: Programming in Visual C++ 2005 Reply with quote

Dear Mike,

I am using Visual C++ 2005. I have successfully built the strategy files included with Forextester. I have also made some of my own strategies.

But i can't seem to build any indicators. not even simple ones. I have taken all the necessary steps and have included all needed header files.
Please help me out.

The Code is attached. you can also find it in the Forextester help file
"Example how to work with objects from indicator".
the log after trying to build is also attached.

Thanks and regards,
Sheraz

PS: if i remove the code body from all the functions (init/calculate etc) and exclude header fles of "technicalfunctions.h" and "Graphics.h", the build would give no errors.
Back to top
View user's profile Send private message
Terranin
Site Admin


Joined: 21 Oct 2006
Posts: 831

PostPosted: Sun Mar 08, 2009 3:47 pm    Post subject: Re: Programming in Visual C++ 2005 Reply with quote

forextester wrote:
Dear Mike,

I am using Visual C++ 2005. I have successfully built the strategy files included with Forextester. I have also made some of my own strategies.

But i can't seem to build any indicators. not even simple ones. I have taken all the necessary steps and have included all needed header files.
Please help me out.

The Code is attached. you can also find it in the Forextester help file
"Example how to work with objects from indicator".
the log after trying to build is also attached.

Thanks and regards,
Sheraz

PS: if i remove the code body from all the functions (init/calculate etc) and exclude header fles of "technicalfunctions.h" and "Graphics.h", the build would give no errors.


I am not an expert with C++ and do not have C compiler on my computer at this moment. So can not help you.

_________________
Hasta la vista
Mike
Back to top
View user's profile Send private message
forextester



Joined: 19 Feb 2009
Posts: 33

PostPosted: Sun Mar 08, 2009 9:01 pm    Post subject: Reply with quote

that' fine.

I am switching back to Delphi.

regards.
Back to top
View user's profile Send private message
KelvinHand



Joined: 02 Jan 2011
Posts: 91

PostPosted: Mon Apr 11, 2011 4:51 am    Post subject: Reply with quote

Hi,

Finally understand how to use VC2008 to compile.
Fixed the problem on the Test Indicator.CPP.
Original caused crash to ForexTester


On the Project Properties
- Linker Input -
Module Definition File : Default.Def

Always set to Default.Def with in the following given format together in
the folder of your *.cpp . eg \Test Indicator\Test Indicator.
========================================
LIBRARY

EXPORTS
Init
Done
Calculate
ReplaceStr
IntrfProcsRec
OnParamsChange
========================================
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Forex Tester Forum (Professional Training Software for Traders) Forum Index -> Programming lessons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group