if trend line crosses another trend line in the future

 
Hi there, I'm busy on an indicator for MT4, but I can't seem to add the rule to only show me a signal if trend line 1 crosses the ray of trend line 2.

Please help?


I know it should be something like:

if ObjectGetValueByShift ("Title + Trendline1") > ("Title + Trendline2");

But it doesn't work.

Please somebody correct me, and assume my lines are called trendline1 and trendline2.
Reason: