Importing Components in Delphi

How to create strategies and indicators
Message
Author
allan21
Posts: 5
Joined: Mon Oct 08, 2007 4:53 am

Importing Components in Delphi

#1 Postby allan21 » Mon Oct 08, 2007 5:01 am

Hi,

I want to create my own strategy. I have downloaded the free version of Turbo Delphi. I tried to compile a strategy that is provided with Forex Tester (the simpleSMA), but I'm getting errors concerning pre defined components like StrategyInterfaceUnit and TTradePositionType.

How do I import those predefined components and objects into the Delphi API?

Thanks

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

Re: Importing Components in Delphi

#2 Postby Terranin » Mon Oct 08, 2007 1:39 pm

allan21 wrote:Hi,

I want to create my own strategy. I have downloaded the free version of Turbo Delphi. I tried to compile a strategy that is provided with Forex Tester (the simpleSMA), but I'm getting errors concerning pre defined components like StrategyInterfaceUnit and TTradePositionType.

How do I import those predefined components and objects into the Delphi API?

Thanks


You can find those components in <ForexTester>\Examples\Strategies\Delphi\
just put them in the same folder with your project, they are:
StrategyInterfaceUnit.pas
TechnicalFunctions.pas
Hasta la vista
Mike

User avatar
Tantalus
Posts: 302
Joined: Fri Mar 23, 2007 3:51 pm
Contact:

#3 Postby Tantalus » Fri Oct 19, 2007 12:10 pm

This works, of course, but I'm getting to where I've got a lot of copies of these common components in many different folders. Is there a way to keep a single copy in one location then call to it there from my indicators and strategies?

Thx.

:)

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

#4 Postby Terranin » Fri Oct 19, 2007 12:20 pm

Tantalus wrote:This works, of course, but I'm getting to where I've got a lot of copies of these common components in many different folders. Is there a way to keep a single copy in one location then call to it there from my indicators and strategies?

Thx.

:)


Yes, just add those files to your project without copying them (in Delphi).
Hasta la vista

Mike


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 21 guests