Price of a certain days ago

Hello,

is there any way I can get a price (number, not array) of a fixed days ago?

Any help would be appreciated!

see TimeFrameGetPrice funciton

@ryank, with very little details in your question, not sure how best to help…

neededpricearay = ref(c,-2);
neededprice = lastvalue(neededpricearray);