After trading a couple of emails with the author of this question I have some additional details. The value to capture is the value of the second moving average at the point the crossover occurs. The solution below is a chart study with alerts for both crossing events. The chart study plots the moving averages as well as the value of the most recent crossing event. The value of the second moving average is included within the text of the alert message, which is shown in the screenshot below.
input maLengthOne = 5;
input maTypeOne = AverageType.EXPONENTIAL;
input maPriceOne = close;
input maLengthTwo = 20;
input maTypeTwo = AverageType.EXPONENTIAL;
input maPriceTwo = close;
plot maOne = MovingAverage(maTypeOne, maPriceOne, maLengthOne);
plot maTwo = MovingAverage(maTypeTwo, maPriceTwo, maLengthTwo);
def crossAbove = maOne[1] < maTwo[1] and maOne > maTwo;
def crossBelow = maOne[1] > maTwo[1] and maOne < maTwo;
rec trackCrossingLevel = if crossAbove or crossBelow then maTwo else trackCrossingLevel[1];
plot crossingLevels = trackCrossingLevel;
Alert(crossAbove, Concat("Cross Above Level: ", trackCrossingLevel), Alert.BAR, Sound.RING);
Alert(crossBelow, Concat("Cross Below Level: ", trackCrossingLevel), Alert.BAR, Sound.RING);