home *** CD-ROM | disk | FTP | other *** search
- unit Function_Momentum;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- Base, ComCtrls, StdCtrls, TeEngine, StatChar, Series, ExtCtrls, TeeProcs,
- Chart;
-
- type
- TMomentumForm = class(TBaseForm)
- Series1: TLineSeries;
- Series2: TLineSeries;
- TeeFunction1: TMomentumFunction;
- Label1: TLabel;
- Edit1: TEdit;
- UpDown1: TUpDown;
- procedure FormCreate(Sender: TObject);
- procedure Edit1Change(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- implementation
-
- {$R *.DFM}
-
- procedure TMomentumForm.FormCreate(Sender: TObject);
- begin
- inherited;
- Series1.FillSampleValues(30);
- end;
-
- procedure TMomentumForm.Edit1Change(Sender: TObject);
- begin
- TeeFunction1.Period:=UpDown1.Position;
- end;
-
- initialization
- RegisterClass(TMomentumForm);
- end.
-