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

get_bars_in_range always return bars up to now #43

Open
zillionare opened this issue Sep 14, 2022 · 0 comments
Open

get_bars_in_range always return bars up to now #43

zillionare opened this issue Sep 14, 2022 · 0 comments
Assignees
Labels

Comments

@zillionare
Copy link
Owner

the code

count= 240  # *240
end = tf.combine_time(tf.day_shift(datetime.date.today(), -8), 15) 
start = tf.shift(end, -count, FrameType.MIN30)
code = '002643.XSHE' 
bars = await Stock.get_bars_in_range(code, FrameType.MIN30, start, end, fq=True)

will always return bars up to now. For example, if today is 2022, 9, 14, then it will return up to 2022, 9, 13

@zillionare zillionare added the bug label Sep 14, 2022
@zillionare zillionare self-assigned this Sep 14, 2022
zillionare pushed a commit that referenced this issue Sep 14, 2022
1. #43 get_bars_in_range always returns bars up to now.
2. _format_tick in candlestick cannot handle date
3. use 2 std deviation to judge breakout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant