[Layout] Name=Envelopes [Window1] Size=100 Overlay1=Price|Candle Overlay2=EnvelopeHigh|LineDot|Olive|3 Overlay3=EnvelopeLow|LineDot|Orange|3 Overlay4=$LowTxt|TxtDown|Red Overlay5=$HighTxt|TxtUp|Olive Formula: If Equal(BarCounter,LastLowPoint) $LowCnt = Add($LowCnt,1) $Lowtxt = Print("L%.0f",$LowCnt) endif If Equal(BarCounter,LastHighPoint) $HighCnt = Add($HighCnt,1) $Hightxt = Print("H%.0f",$HighCnt) endif