Hi,
Attempting to load _really_ simple (like one horiz. line) indicators in FT2 crashes the app.
I assume it's because Delphi is compiling with the old FT1 libs.
If true, can you recommend the best proc for resolving--I'd like to avoid a teardown. If false, what could it be? I'm stumped.
Thx,
dv
custom indicator crashes app
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 pm
Re: custom indicator crashes app
varontron wrote:Hi,
Attempting to load _really_ simple (like one horiz. line) indicators in FT2 crashes the app.
I assume it's because Delphi is compiling with the old FT1 libs.
If true, can you recommend the best proc for resolving--I'd like to avoid a teardown. If false, what could it be? I'm stumped.
Thx,
dv
It is not a compillation problem I think, maybe some problems in code. Send your source code and I will see.
Hasta la vista
Mike
Mike
-
- Posts: 5
- Joined: Sat Apr 18, 2009 11:36 pm
Hi,
I sent a bug report from the crash.
Here is the code that caused the crash:
It compiled and installed without error. Adding it to the chart--no go.
Thx,
dv
I sent a bug report from the crash.
Here is the code that caused the crash:
Code: Select all
library TestIndicator;
uses
// use interace unit
IndicatorInterfaceUnit;
//var
//i: Integer;
// external parameters
procedure Init; stdcall;
begin
end;
procedure Calculate(index: integer); stdcall;
begin
Print('test');
end;
exports
Init, Calculate;
end.
It compiled and installed without error. Adding it to the chart--no go.
Thx,
dv
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 pm
varontron wrote:Hi,
I sent a bug report from the crash.
Here is the code that caused the crash:Code: Select all
library TestIndicator;
uses
// use interace unit
IndicatorInterfaceUnit;
//var
//i: Integer;
// external parameters
procedure Init; stdcall;
begin
end;
procedure Calculate(index: integer); stdcall;
begin
Print('test');
end;
exports
Init, Calculate;
end.
It compiled and installed without error. Adding it to the chart--no go.
Thx,
dv
Init procedure is not complete, you should at least have following lines:
IndicatorShortName(<Indicator name>);
SetOutputWindow(ow_ChartWindow);
Hasta la vista
Mike
Mike
- Terranin
- Site Admin
- Posts: 833
- Joined: Sat Oct 21, 2006 4:39 pm
-
- Posts: 5
- Joined: Sat Apr 18, 2009 11:36 pm
You have the magic touch. Thanks!
For clarity, here is what worked:
Thanks again!
For clarity, here is what worked:
Code: Select all
library TestIndicator;
uses
// use interace unit
IndicatorInterfaceUnit;
//var
//i: Integer;
// external parameters
procedure Init; stdcall;
begin
IndicatorShortName('test');
SetOutputWindow(ow_ChartWindow);
IndicatorBuffers(0);
end;
procedure Calculate(index: integer); stdcall;
begin
Print('test');
end;
exports
Init, Calculate;
end.
Thanks again!
Who is online
Users browsing this forum: No registered users and 45 guests