NinjaScript > Language Reference > Strategy > TradesPerformanceValues >

ProfitPerMonth

Print this Topic Previous pageReturn to chapter overviewNext 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

protected override void OnBarUpdate()
{
    // Print out the profit per month of all trades

    Print("Profit per month of all trades is: " + Performance.AllTrades.TradesPerformance.Currency.ProfitPerMonth);
}