Forex Tester 2 Forum

Our site www.forextester.com
It is currently Fri Aug 22, 2014 6:44 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Development tools
PostPosted: Mon Sep 28, 2009 10:32 am 
Offline
Site Admin
User avatar

Joined: Sat Oct 21, 2006 4:39 pm
Posts: 838
Forex Tester API allows you to create and install your own indicator or strategy (Expert Adviser) to Forex Tester. API is available for C++ and Borland Delphi (Object Pascal) languages. It is set of files (with useful functions) that you attach to your project to compile resulting *.dll file. Then you can install this file in Forex Tester. You can find API files after installation of Forex Tester in <ForexTester>\Examles\ folder with indicators and strategies examples.

I can recommend to use next tools to compile your projects. API was tested with these tools and they work fine. Also some of them are absolutely free to use even in commercial purpose:

1. Borland Delphi - any Delphi version starting from Delphi 7. Unfortunately it is not free now (they provided free Turbo Delphi Explorer before). You can see Delphi tutorials here: http://www.forextester.com/forum/viewforum.php?f=9

2. Lazarus - free cross platform pascal compiler. Can compile Delphi code without problems. You can download it here: http://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%200.9.26.2/lazarus-0.9.26.2-fpc-2.2.2-win32.exe/download
See how to install it and compile indicator in this video: http://www.youtube.com/watch?v=kL7z8kG7WCw

3. Microsoft Visual C++ 2005 Express Edition (you can download this tool from Microsoft site http://www.microsoft.com) - it is also free. Or you can use other C++ compilers.

_________________
Hasta la vista
Mike


Top
 Profile  
 
PostPosted: Fri Apr 16, 2010 5:50 am 
Offline

Joined: Thu Nov 09, 2006 2:29 am
Posts: 35
Hi Mike,

I downloaded the lazarus compiler and installed it exactly as per your video.

Only difference is that my IndicatorInterfaceUnit.pas (39KB) and TechnicalFunctions.pas (9KB) files is in adifferent sub-folder. It were in ForexTester2/Examples/Indicators/Delphi. I did copy them to the Projects directory under lazarus.

I checked and double checked my settings according to those in the video.

However, when I run "Build" for "Alligator.dpr" it gives me the errors as shown in the attached image.

I assume some of my settings are not correct, please help.

Regards,
Christoff


Attachments:
lazarus error.png
lazarus error.png [ 129.84 KiB | Viewed 19569 times ]
Top
 Profile  
 
 Post subject: Problem solved
PostPosted: Fri Apr 16, 2010 8:39 am 
Offline

Joined: Thu Nov 09, 2006 2:29 am
Posts: 35
I solved the problem. I uninstalled ver 28 and installed ver 26 and everything is OK


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2011 9:18 am 
Offline

Joined: Sat Mar 19, 2011 9:07 am
Posts: 2
Hi Mike,

I am running thru the installation of the Lazarus using your posted youtube video.
I still could not find the file alligator.dpr ( only alligator.dll available in my folders)
Managed to find the other 2 files (indicatorinterface.pas & TechnicialFunction.pas) thru this forum.

Please advise how i could get this alligator.dpr file from?

Thanks~~


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2011 12:19 pm 
Offline

Joined: Sat Jul 11, 2009 10:54 am
Posts: 905
Hello,

Please find "alligator.dpr" file in <your Forex Tester install path>\Examples\Indicators\Delphi\IndicatorsSrc

_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 19, 2011 12:49 pm 
Offline

Joined: Sat Mar 19, 2011 9:07 am
Posts: 2
Got it.. Thanks


Top
 Profile  
 
 Post subject: Visual Basic
PostPosted: Thu Mar 31, 2011 12:11 pm 
Offline

Joined: Fri Oct 10, 2008 2:50 pm
Posts: 11
HI,

Is it possible to use Visual Basic to develop indicators or strategies for Forex Tester? If not, which of the available languages is the closest to VB?

Thanks,

SR


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 31, 2011 2:18 pm 
Offline

Joined: Sat Jul 11, 2009 10:54 am
Posts: 905
Hello SR,

Sorry, we do not have VB API, i'd suggest you to use Delphi, it is a bit more user-friendly than C++

Please see more information about FT API here:

Forex Tester -> Help -> Strategies API
Forex Tester -> Help -> Indicators API
http://www.forextester.com/forum/viewforum.php?f=8
http://www.forextester.com/forum/viewforum.php?f=9

_________________
Check our other products here:
www.fx-metropolis.com
www.forexcopier.com


Top
 Profile  
 
PostPosted: Sun Aug 21, 2011 7:11 pm 
Offline

Joined: Fri Aug 19, 2011 1:24 am
Posts: 5
Location: Australia
christoff wrote:
Hi Mike,

I downloaded the lazarus compiler and installed it exactly as per your video.

Only difference is that my IndicatorInterfaceUnit.pas (39KB) and TechnicalFunctions.pas (9KB) files is in adifferent sub-folder. It were in ForexTester2/Examples/Indicators/Delphi. I did copy them to the Projects directory under lazarus.

I checked and double checked my settings according to those in the video.

However, when I run "Build" for "Alligator.dpr" it gives me the errors as shown in the attached image.

I assume some of my settings are not correct, please help.

Regards,
Christoff


you can solve this error by adding interfaces to your uses clause, and select NoGUI under compiler options - paths for the LCL widget type


Top
 Profile  
 
PostPosted: Sat Jan 25, 2014 9:46 am 
Offline

Joined: Sat Jan 25, 2014 9:36 am
Posts: 2
Hi all, I'm using Lazarus v1.2RC2. I'm trying to compile the demos provided and got these errors.

I assume the library StrategyInterfaceUnit.pas can't be erroneous, it should be something to do with Lazarus setting?

Grateful for any help.

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group