Your best bet is actually to plot a second chart into the workspace and then use your formula:
average(rsi(close, 14), 10) of data2
That's the easiest way to do it.
Otherwise, CloseD() gives you the most recent daily close. I forget if it's CloseD(0) or CloseD(1), but you can look at...