breakout in gbpusd expert advisor

I a testing this expert advisor that uses a breakout box to calculate the open price of a pending order.
Files:

It uses the highest an the lowest price whithin the box to set the open price of the stoporder.

this is the backtest

Files:

What is your question ?

my quetion is how to set a good trailing stop funtion, that would takeprofit at the highest value posible?

Try 79.

I could reach better profits making the takeprofit value equal to the height of the box and using a trailingstop with threshold funtion.

Files: