Highest High And Lowest Low In A Time Period

IF OpenTime = 140000 Then
   MyHighest = high
   MyLowest  = low
Endif
If OpenTime > 140000 and OpenTime <= 160000 Then
   MyHighest = max(MyHighest,high)
   MyLowest  = min(MyLowest,low)
Endif

Leave a Comment