TREND SNIPER (Final Version)

// Then it sets 4 exit lines, if the [HLC3] backtraces these lines you've got your normal [green] exit.
// If the close crosses the TP you've got your TP [blue] exit. And if the close crosses the SL you've got your SL [red] exit.
// This is the good part --> If the close crosses the first line the SL get's raised to the entry level.
// This way you cut down on the SL losses and turn a lot of SL trades into (almost) break even trades.
// You can adjust the resistance and support levels to remove the 'little wick entries', this raises the profitability.
// You can also choose the security resolution. I recommend using a higher timeframe than the chart resolution.
// The exit source is also changeable. The HLC3 works best for me, but you can try others if you want.
I could really use some feedback. I want the resistance and support levels to remain on the same position when in trade. But it sometimes changes mid trade.
If you know how to fix this I will be forever grateful. If you have any feedback don't hesitate to give it to me straight. Thanks in advance and have a wonderful day :)
I've been very busy making the chart results match the alert results, and doing my best to ensure the resistance/support levels don't change mid trade. I think I fixed those errors and the indicator is much closer to reality now. I also fixed some plotshape errors so now all colors match with what happens. Even on the one candle trades everything matches. These changes make it easier to backtest results and make them more accurate. A 100% perfect precision doesn't exist but I think, with these changes, the indicator gets close.
I also added an optional function; SL Protection. It's sound really cool but all it does is cancel a trade if there was a SL trade less then 3 bars ago. This way you don't have to worry about 2 or 3 SL trades in a row within a small timeframe. It might block some good trades as well, so you must calculate if it is worth using.
So far I haven't really received any feedback. If you got a minute to spare, please let me know what you think of it and/or where you want to see improvement. I would really appreciate it !
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.