Development tools

How to create strategies and indicators
Message
Author
User avatar
Terranin
Site Admin
Posts: 838
Joined: Sat Oct 21, 2006 4:39 pm

Development tools

#1 Postby Terranin » Mon Sep 28, 2009 10:32 am

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

christoff
Posts: 37
Joined: Thu Nov 09, 2006 2:29 am

Problems with setting up Lazarus

#2 Postby christoff » Fri Apr 16, 2010 5:50 am

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 27186 times

christoff
Posts: 37
Joined: Thu Nov 09, 2006 2:29 am

Problem solved

#3 Postby christoff » Fri Apr 16, 2010 8:39 am

I solved the problem. I uninstalled ver 28 and installed ver 26 and everything is OK

GreenBanana
Posts: 2
Joined: Sat Mar 19, 2011 9:07 am
Contact:

#4 Postby GreenBanana » Sat Mar 19, 2011 9:18 am

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~~

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am
Contact:

#5 Postby FT Support » Sat Mar 19, 2011 12:19 pm

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

GreenBanana
Posts: 2
Joined: Sat Mar 19, 2011 9:07 am
Contact:

#6 Postby GreenBanana » Sat Mar 19, 2011 12:49 pm

Got it.. Thanks

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

Visual Basic

#7 Postby seattlerust » Thu Mar 31, 2011 12:11 pm

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

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am
Contact:

#8 Postby FT Support » Thu Mar 31, 2011 2:18 pm

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

NudgeFX
Posts: 5
Joined: Fri Aug 19, 2011 1:24 am
Location: Australia

Re: Problems with setting up Lazarus

#9 Postby NudgeFX » Sun Aug 21, 2011 7:11 pm

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

jimbo
Posts: 2
Joined: Sat Jan 25, 2014 9:36 am

help with Lazarus v1.2RC2 compilation errors

#10 Postby jimbo » Sat Jan 25, 2014 9:46 am

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

zvolpe
Posts: 4
Joined: Wed Nov 11, 2015 3:54 am

Re: Development tools

#11 Postby zvolpe » Wed Nov 11, 2015 5:29 am

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?

FX Helper
Posts: 634
Joined: Mon Apr 01, 2013 3:55 am

Re: Development tools

#12 Postby FX Helper » Thu Nov 12, 2015 5:53 am

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.


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 0 guests