I got some messages about Gann Fan script and now here Gann Fan script is in your use.
it finds highest and lowest levels in last ~300candles and draws Gann Fan. if Highest level is prior than lowest level than Gann Fan from highest level has solid lines, Gann Fan from Lowest level has dashed lines. and vise versa.
The source code is hidden but it's free to use script.