MT4 Please help me extrapolate last time bid was same as current bid from trend line

Please help me out, I’m trying to get MT4 to print out the last time the price was the same as current bid price via using a HLINE and just extrapolating the point where it touches the green price line.


ObjectCreate(ChartID(),"objname",OBJ_HLINE,0, TimeCurrent() ,Bid);
ObjectSet("objname",OBJPROP_COLOR,Purple);
ObjectMove(ChartID(), "objname",0,TimeCurrent(),Bid);
WindowRedraw();

How do I get that date? Posted a screen with the point that I’m wanting to get the date from .