Skip to content

Fractals.UpFractal

property · Fractals · cAlgo.API.Indicators

DesktopCLICloud

The up fractals plot/output

Definition

IndicatorDataSeries UpFractal {get; set;}
fractals.UpFractal: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

var fractals = Indicators.Fractals(5);
for (var barsAgo = 1; barsAgo <= 20; barsAgo++)
{
    if (!double.IsNaN(fractals.UpFractal.Last(barsAgo)))
    {
        Print("Latest up fractal {0} bars ago at {1}", barsAgo, fractals.UpFractal.Last(barsAgo));
        break;
    }
}
import math

fractals = api.Indicators.Fractals(5)
for barsAgo in range(1, 21):
    if not math.isnan(fractals.UpFractal.Last(barsAgo)):
        api.Print(f"Latest up fractal {barsAgo} bars ago at {fractals.UpFractal.Last(barsAgo)}")
        break