Not sure I fully get it, but anyway:
Code
function run()
{
	set(PLOTNOW);

	LookBack = 300;

	vars Prices = series(priceC());
	vars MA = series(SMA(Prices,20));
	vars MASlope = series(MA[0]-MA[1]);

	plot("MA Slope",MASlope,NEW,RED);
}