A new high occurs when the high of a particular bar is higher than the highs of previous bars. There is no calculation necessary for this indicator.
Testing Dialog Box
Reference: None