Backtests how tradingview mislead results with HL wicks orders ?

Anybody could explain to me how to avoid a take profit order being filled on tops of wicks ?
In this example I'm backtesting AMD gettex whole history.
First of all I think this 900% wick is erroneous data. Then, I activated the option "After order is filled" and I'm backtesting the 1W timeframe.
This bug gets triggered often on stop sell orders. I think I managed to avoid it on limit buy by checking programmatically if bar's open is after or before. Kinda complicated to sort it out.
In this example I'm backtesting AMD gettex whole history.
First of all I think this 900% wick is erroneous data. Then, I activated the option "After order is filled" and I'm backtesting the 1W timeframe.
This bug gets triggered often on stop sell orders. I think I managed to avoid it on limit buy by checking programmatically if bar's open is after or before. Kinda complicated to sort it out.
Nota
I meant limit sell, but now I realize it's by design the intrabar calculation occurs on HLOC, so I need to take that into account while coding my script ...Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.