Ulcer

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > TradesPerformanceValues >

Ulcer

Previous page Return to chapter overview Next page

Definition

Returns the Ulcer.
 

Property Value

A double value that represents the Ulcer.

 

Syntax
<TradeCollection>.TradesPerformance.<TradesPerformanceValues>.Ulcer

 

 

Examples

ns

protected override void OnBarUpdate()
{
    // Print out the Ulcer index of all trades
    Print("Turnaround of all trades is: " + SystemPerformance.AllTrades.TradesPerformance.Currency.Ulcer);
}