Using trade performance statistics for money management

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Educational Resources > Reference Samples > Strategy >

Using trade performance statistics for money management

Previous page Return to chapter overview Next page

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.


Key concepts in this example

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


Important related documentation





* 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.


Import instructions

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