Fractal based trendline indicator? can somebody please help

 

Hello am looking for a indy that draws trendlines off of fractal points only. But I want it to only draw them based off of only the previous 2 created fractals I do not want it to go any farther back than the previous 2. And only to draw them if for example it is a bottom trendline then the 2nd to last fractal is a lower low than the last one or on an above trendline that the 2nd to last fractal is a higher high. Can anybody code or has please thankyou so much for the help

 

Anybody please? I have a demark trendline indy but it creates them from points farther back than I want to go. I only want fractal lines to be drawn from the possibility of the last 2 fractals on both sides and only if the previous is lower than the low fractal or higher than the last high fractal (obviously) thankyou