|
Money Management Scripts
A strategy portfolio can be assigned a money management script to redistribute cash
between trading strategy portfolio accounts, based on their performance or some
other heuristic. The distribution of cash between the trading strategies in a strategy
portfolio can have a huge effect on its performance, much like the distribution
of cash in a stock portfolio.
The IQBroker automated trading software ships with a library of premade money 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.
|
|
|
OnMoneyManagement()
|
|
This function is called automatically at the end of every portfolio day, its implementation
should redistribute cash between the portfolio accounts when needed. Multi-currency
cash transfers between accounts are automatically processed using a currency conversion
table.
|
|
|