Using External Libraries

The “Uses” keyword defines a list of one or more units that are used by the current unit, program or library.

 

 

uses 'My_trades.act';
                               
const        
 StrategyName = 'Test For Uses';
 
procedure OnCreate;
begin
 Log('OnCreate');
end; // OnCreate
 
procedure OnStart;
var
 AccountLocal: TAccount;
begin
 Log(ExtVar);
end; // OnStart
 
procedure OnCommand(const Command: String);
begin
 Log('OnCommand. Command: ' + Command);
 My_function; //function from My_trades.act
end; // OnCommand