Using trade performance statistics for money management
<< Click to Display Table of Contents >> Using trade performance statistics for money management |
For money management reasons you may want to limit your strategy from aggressive daytrading or you may want to cut your losses short on volatile sessions that are not playing out in your favor. This can be done through the utilization of the Performance object.
•Locking in realized profits after a certain amount of gains have been achieved during the trading session
•Cutting realized losses short after a certain amount of losses have been accrued over the trading session
•Preventing aggressive amounts of trading
* This reference sample uses the .AllTrades property. This property will include all historical virtual trades as well as real-time trades. If you wish to only make calculations based on real-time trades you can use the .RealtimeTrades property.
1.Download the file contained in this Help Guide topic to your PC desktop
2.From the Control Center window, select the menu Tools > Import > NinjaScript
3.Select the downloaded file