fractal indicator

Created at 26 Jan 2018, 00:05
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BU

burakod

Joined 27.09.2017

fractal indicator
26 Jan 2018, 00:05



            var perviousFractalUp = IFractals.UpFractal.Last(1);
            var currentFractalUp = IFractals.UpFractal.Last(0);
            var perviousFractalDown = IFractals.DownFractal.Last(1);
            var currentFractalDown = IFractals.DownFractal.Last(0);

 

I want to get the first fractal and the second fractal values, how can I do that? that is to separate the value of the first fractal from the value of the second fractal.


@burakod
Replies

cgatting
27 May 2020, 11:31

You need to do IFractals.UpFractal.LastValue(0) or (1) and IFractals.DownFractal.LastValue(0) or (1)


@cgatting