You cannot convert this particular indicator into a trading system because the code “searches” for tops and bottoms from the past…
fractalP=10
cp=fractalP
If High[cp] >= and here it goes wrong for the trading system because the starting point is High[10], the high of 10 bars ago and you can’t open a position 10 bars ago…