fischeye / Publications
Forum
Get Highest/Lowest value of Fractals of the last x bars ---- result is 3.0 or 4.0 or 15.0 instead of the real value of the fractals
input int PSAR_max_bar = 15; // bars on which you want to find fractals void OnTick() { double upper[]; double lower[]; for ( int i= 3 ; i<PSAR_max_bar; i++) { upper[i]=iFractalsGet( UPPER_LINE ,i); lower[i]=iFractalsGet( LOWER_LINE ,i); } double maxUpper = ArrayMaximum