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
Importing Components in Delphi
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 pm
Re: Importing Components in Delphi
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
Mike
- Tantalus
- Posts: 302
- Joined: Fri Mar 23, 2007 3:51 pm
- Contact:
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 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
Mike
Who is online
Users browsing this forum: No registered users and 21 guests