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

added class and if check for unchanged stocks #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ColinRhys
Copy link

I added a new class for stocks that are unchanged. This class makes the 0 grey instead of red. Seeing a stock ribbon with a bunch of red zeros can be scary. I have included an image from thinkorswim’s iPhone app showing /ZT[M8] the 2-year treasury bond futures unchanged and the 0’s are white. Since the ticker symbols are already white I thought grey would be a good choice.

Any stock could be unchanged randomly throughout the day even though it is unlikely. In the morning before the market opens the API is showing a number of the stocks at 0. This is when I first saw all of the red zeros and then looked at the code.

The first photo is the example photo from thinkorswim’s iPhone app the second is the version of stock ribbon with grey zero on TBT.

https://imgur.com/a/Ecosh

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

Successfully merging this pull request may close these issues.

1 participant