Is there any way to display an indicator on chart OR seperate panel into the future

 
Is there any way to display an indicator on chart OR seperate panel into the future

im trying to write an indicator to predict the future

i found the setIndexShift command but thats not quite what I want
would be grateful of any help thanks
 
SetIndexShift is only one way to display indicator values in the future