I have created a scanner with following conditions:
price > 10

most recent  roe > 0.1

market cap > 300000000

most recent eps growth > 0.1

sma 50 > sma200

avg volume > 1M

21 days roc > 20%

The theory behind is to use fundamentals to find some stocks with good fundamentals so that it will go up. Also use 200sma 50sma to confirm and filter. ROC > 20% means a big move recently, then there will be a potential buy after retracement. 
The problem is when I compare the 21 days roc of close of quantconnect with roc of tradingview, they show different numbers. 
I also compare the sma50 of quantconnect and sma50 of tradingview, they show similar results.

9th May 2024 MSTR 21 days ROC
tradingview: -19.31%
quantconnect: 687.4329501915709 

I cannot find any problem in my code. It would be nice to have some help. Many Thanks.