I guess the variables should be static here like in the example below

Code
function run()	
{	
StartDate = 20160101;	
EndDate = 20160331;	
BarPeriod = 1440;	
	
vars Price = series(price());	
vars Highs = series(priceHigh());	
vars Lows = series(priceLow());	
	
var fHigh = FractalHigh(Highs, 7);	// short term highs and lows
var fLow = FractalLow(Lows, 7);	
static var fHighCurrent, fLowCurrent;	// fractal values are retained between runs ...
if (fHigh != 0) fHighCurrent = fHigh;	// ... and are changed whenever a non-zero value is returned by FractalHigh() ...
if (fLow !=0) fLowCurrent = fLow;	// ...  or FractalLow()
	
plot("Recent High", fHighCurrent, MAIN|DOT, BLUE);	
plot("Recent Low", fLowCurrent, MAIN|DOT, RED);	
}