Page 1 of 1

Development tools

Posted: Mon Sep 28, 2009 10:32 am
by Terranin
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.

Problems with setting up Lazarus

Posted: Fri Apr 16, 2010 5:50 am
by christoff
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

Problem solved

Posted: Fri Apr 16, 2010 8:39 am
by christoff
I solved the problem. I uninstalled ver 28 and installed ver 26 and everything is OK

Posted: Sat Mar 19, 2011 9:18 am
by GreenBanana
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~~

Posted: Sat Mar 19, 2011 12:19 pm
by FT Support
Hello,

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

Posted: Sat Mar 19, 2011 12:49 pm
by GreenBanana
Got it.. Thanks

Visual Basic

Posted: Thu Mar 31, 2011 12:11 pm
by seattlerust
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

Posted: Thu Mar 31, 2011 2:18 pm
by FT Support
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

Re: Problems with setting up Lazarus

Posted: Sun Aug 21, 2011 7:11 pm
by NudgeFX
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

help with Lazarus v1.2RC2 compilation errors

Posted: Sat Jan 25, 2014 9:46 am
by jimbo
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

Re: Development tools

Posted: Wed Nov 11, 2015 5:29 am
by zvolpe
With the latest version of Lazarus I get errors like:

ScriptInterfaceUnit.pas(883,26) Error: Incompatible types: got "<procedure variable type of function:Double of object;StdCall>" expected "Double"

Does scripting only work with the old version of Lazarus in the sticky post?

Re: Development tools

Posted: Thu Nov 12, 2015 5:53 am
by FX Helper
Hello,

We do not code with Lazarus but as far as I know, there can be a problems with Lazarus so we reccomend to use otherDelphi versions.

Re: Development tools

Posted: Fri Dec 29, 2017 2:43 pm
by kiwipaul06
wow is this delphi expensive $1500 bucks - unless i have the wrong one?
:roll:

Re: Development tools

Posted: Fri Dec 29, 2017 2:44 pm
by kiwipaul06
anyone able to do better than this please?

Re: Development tools

Posted: Thu Nov 10, 2022 8:55 am
by Wessel
Well try Visual Studio with C++ :?