Trades not closing when TP or SL is reached on first candle

Community / Features & BugsCategory: BugsTrades not closing when TP or SL is reached on first candle
Matias asked 5 months ago

hey @davidd , hope you are doing great. I recently discovered that trades wont \\"close\\" in tradingview when the entry and the take profit occur in the same candle (no issues whatsoever tho with the middle man and the exchange). do you think there is a fix for this? I find it to be quite relevant because it does happen every now and then and causes 2 misleading things to show: 1. the trade will appear in tradingview as if it has not ended yet, \\"continuing\\" to show said trade in the list of trades when in reality either the SL or TP have been already triggered. and 2. because of 1, all metrics in the strategy tester dont show what is really happening in reality. Also, opportunities are being lost to enter new trades while being stuck! A fix to this could mean a signifficant raise in win rates, net profits and overall metrics. The strategy im currently using is the Heikin-Ashi CE Double RSI, BTCUSDTPERP, 15m, Binance, 1x leverage.

Attachments

daviddtech
Staff replied 5 months ago

Hey there Matias,
Thanks for the message.
This seems to be a drawing problem only and will not affect the trading strategy.

daviddtech
Staff replied 5 months ago

Oh no I can see what you mean.

This is backtesting only… The problem is missing data from TradingView.
The backtester doesn’t know what came first High low so it is ignored unfortunatly.

daviddtech
Staff replied 5 months ago

The other detail is your entry was made on the close so that is at the end of the candle.

Liked it? Take a second to support on Patreon!