How to calculate the higher high and previous higher high?higher high:if(high[3]>high[2] && high[3]>high[1] && high[3]>high[4] && high[3]>high[5])higherhigh= high[3]

 

higher high:if(high[3]>high[2]  &&  high[3]>high[1]  &&  high[3]>high[4]  &&  high[3]>high[5])highe rhigh= high[3]

please show me the code,thank u.

Reason: