This script will show up to three different timeframe structure based on fractal formation (combination of three candles where the middle one is the highest).
You can modify each of the timeframes (called factors in the script). These factors emulate the fractal formations on the timeframe specified (in minutes). I found that at least for me a combination of 1-10-100 works well if you use the 1 minute timeframe, but you can try different combinations to see long term structures o more short term structures.
There are a couple of things I would like to add later on, for example, to select dots instead of lines to show structure or adding orderblocks based on the fractal formations (as this would emulate higher timeframe OBs). As soon as I can, I will add these.