Scripts: The intersections of two lines

The intersections of two lines:

In MetaTrader 4, we intend to calculate the intersection coordinates of two straight line objects with different slopes using MQL4.

The intersections of two lines

Author: NabiKAZ

Thank you. concise and wonderful.
it's not working 

Before publishing the code, you should at least check how it works.

Switch timeframes and see what works wrong.

Works absolutely perfect!