How 2 shift an object (such as trenline) beyond the most recent bar?

 
ObjectCreate("link",OBJ_TREND,0,Time[1],PRICE1,Time[0],PRECE2);
...

Because the parameter n used by Time[n] cannot be negative. so how can i shift the trendline object rigth to beyond the most recent bar?
 
ObjectCreate("link",OBJ_TREND,0,Time[1],PRICE1,Time[0],PRECE2);
...

Because the parameter n used by Time[n] cannot be negative. so how can i shift the trendline object rigth to beyond the most recent bar?

Calculate time as "Time[0] +Period()*60* n" it should work.
 
ObjectCreate("link",OBJ_TREND,0,Time[1],PRICE1,Time[0],PRECE2);
...

Because the parameter n used by Time[n] cannot be negative. so how can i shift the trendline object rigth to beyond the most recent bar?

Calculate time as "Time[0] +Period()*60* n" it should work.


actually it does WORK!
Thank you very much!
Happy New Year.