ProfitPerMonth

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > TradesPerformanceValues >

ProfitPerMonth

Previous page Return to chapter overview Next page

Definition

Returns the profit per month of the collection. This value is always returned as a percentage.
 

Property Value

A double value that represents the profit per month of the collection as a percentage.

 

Syntax
<TradeCollection>.TradesPerformance.<TradesPerformanceValues>.ProfitPerMonth

 

 

Examples

ns


protected override void OnBarUpdate()
{
    // Print out the profit per month of all trades
    Print("Profit per month of all trades is: " + SystemPerformance.AllTrades.TradesPerformance.Currency.ProfitPerMonth);
}