|
Risk Management Scripts
A strategy portfolio can be assigned a risk management script that can modify or cancel
orders based on portfolio level risk analysis.
The IQBroker automated trading software ships with a library of premade risk management scripts that can be parameterized
and customized without any programming, while custom scripts can be easily developed
using the resource designer and IQLanguage.
Script Implementation
|
OnInitialize()
|
|
This function is called automatically when the script is first initialized.
|
|
|
OnRiskManagement()
|
|
This function is called automatically after every exchange bar, its implementation should analyze the portfolio level risk and
determine whether any pending orders need to be modified or cancelled.
|
|
|