-
Notifications
You must be signed in to change notification settings - Fork 246
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
Weekly Result of Indicators are Not Correct #1183
Comments
This is a rather complex problem as I'm sure you're aware. Before I dig in to analyze further, given how often I've dealt with comparisons to TradingView charts, the root problem is most likely going to be one of these:
See related know issues and common problems: |
I would normally recommend using our quotes.Aggregate(PeriodSize.Week) utility; however I think it uses a rolling 7-day week instead of a fixed week with a specific day (e.g. Saturday) as the end. I'm making a note to confirm that utility's behavior and to clarify our documentation. |
// aggregate into larger bars If you look into my query, it get the closing of Friday, and min and max value in week, and open at Monday, the same formula is working for Monthly, but not for weekly. |
I expected this. Our week uses a rolling 7-day period with an arbitrary end day. I also noticed that SQL syntax (general observation) doesn't really have a windowed way to do I think I've found a fix for this |
the problem
I am using Indicators, Super Trend, Connors RSI, Momentum and Dema, the return value of daily and monthly return accurate with trading view, while weekly result varies, I have attached the image it will elaborate it,
Sql Script
the data file is of sqlite
SKL_SAZEW_1911.zip
The text was updated successfully, but these errors were encountered: