The Risk Manager block is used for filtering entry trades based on risk thresholds, adjusting stops, and reducing or exiting positions if necessary to reduce overall portfolio risk. It includes the following scripts:
Block Type |
Script Type |
Day |
Instrument |
Position |
Called When |
---|---|---|---|---|---|
|
|
|
|||
Risk Manager |
|
|
|
||
|
|
start of test |
|||
= |
|
end of day |
|||
|
|
= |
end of day |
||
= |
|
end of day |
|||
|
|
= |
end of day |
||
|
called by broker when for entry orders |
||||
|
called as order is about to be filled |
||||
|
|
|
As indicated above, the instrument-specific scripts associated with the Risk Manager loop over instruments with existing positions. They do not loop over instruments that are not in an active position.
The Can Add Unit and Can Fill Orders scripts can be added to any block. In this way multiple blocks can process these scripts to determine if an order can be placed or filled.
Edit Time: 9/13/2020 3:17:12 PM |
Topic ID#: 506 |