Event |
Description |
procedure OnCreate; |
This procedure runs when the strategy window is opened (when you click 'Run'). It is used to create a list of parameters, which can be adjusted every time the strategy is launched. |
procedure OnStart; |
This procedure runs when the strategy is started. |
procedure OnOrderChange( const Action: TDataModificationType; const Order: TOrder); |
This procedure runs every time when an order is created, executed/removed or modified. |
procedure OnTradeChange( const Action: TDataModificationType; const Trade: TTrade); |
This procedure runs when a position is opened, closed or modified |
procedure OnAccountChange( const Action: TDataModificationType; const Account: TAccount); |
This procedure runs when the following occurs in any of the trader's accounts: balance change, group account changes, default amount change, markups adjustment. |