Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The backtesting strategy involves repainting #3

Open
Yangshuang10010 opened this issue Mar 7, 2023 · 3 comments
Open

The backtesting strategy involves repainting #3

Yangshuang10010 opened this issue Mar 7, 2023 · 3 comments

Comments

@Yangshuang10010
Copy link

I conducted a test on the 1-minute chart of FTM_USDT using and added an alert. During the test, I found that the backtesting strategy involves repainting, resulting in inconsistent timing between trade lists and real-time signals. For example, at 23:20 on March 7, 2023, the chart generated a signal and triggered an alert, but a minute or two later, the trade signal disappeared, and it was not present in the backtesting list. However, the signal record still existed, leading to inconsistency between real-time and backtesting trades.

@zahidhussaina2l
Copy link

I also did some backtesting on 1-minute chart of FTM_USDT using 1M Candles strategy and seems like it has repainting because whenever I will refresh the page, it will add some positions on the chart which were not even available before. It uses request.security function which does the repaint thing. So it only shows lucerative results on backtesting but not on real charts.

@burakyalti
Copy link

I also did some backtesting on 1-minute chart of FTM_USDT using 1M Candles strategy and seems like it has repainting because whenever I will refresh the page, it will add some positions on the chart which were not even available before. It uses request.security function which does the repaint thing. So it only shows lucerative results on backtesting but not on real charts.

because he is using different timeframe variables which causes %90 repaint.

/request.security(symbol=syminfo.tickerid, timeframe="11", expression=avg_10m, lookahead=barmerge.lookahead_on)

@hemal9022
Copy link

download all types of premium tradingview indicators codes available on telegram - https://t.me/tradingview_premium_indicator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants