Fractals.DownFractal
property · Fractals · cAlgo.API.Indicators
DesktopCLICloud
The down fractals plot/output
Definition
IndicatorDataSeries DownFractal {get; set;}
fractals.DownFractal: IndicatorDataSeries
Returns IndicatorDataSeries
Examples
var fractals = Indicators.Fractals(5);
for (var barsAgo = 1; barsAgo <= 20; barsAgo++)
{
if (!double.IsNaN(fractals.DownFractal.Last(barsAgo)))
{
Print("Latest down fractal {0} bars ago at {1}", barsAgo, fractals.DownFractal.Last(barsAgo));
break;
}
}
import math
fractals = api.Indicators.Fractals(5)
for barsAgo in range(1, 21):
if not math.isnan(fractals.DownFractal.Last(barsAgo)):
api.Print(f"Latest down fractal {barsAgo} bars ago at {fractals.DownFractal.Last(barsAgo)}")
break