Developing "Spartan"

Also Stocktwits is like the "pop culture" of stocks:

upload_2019-12-18_9-57-55.png
 
So just a quick update on how useful this data has been so far this morning:

1. Identified SCS around 9:25
2. Entered SCS long at open
3. ???
4. Profit

Of course, trading 100 shares is nothing lol.

WELP there's the FOMO lol... A well, at least I paid for some of my time developing this last night.
 
Past couple of days that I've been collecting this information, it's incredibly interesting how the information moves from market -> twitter -> market

Today, I played $CAG during the morning's first consolidation and got out for $1.25/share profit but the interesting story is not that it was successful, but that the fucker kept going (+.50 from my exit). I began to analyze the twats and it looks like the second wind came around the time twatter picked up.

So there is more work to do here in data collection.

Something to the effect of:

- Observe market scanner relative strength
- I enter on first consolidation after relative strength established (been doing past couple of days - no idea whether this will work long term)
- Keep an eye on the twatter
- As twatter picks up price movement, sell into the strength

In order for me to do this quantifiably, I need to automate the "keep an eye on the twatter" step. This can be done as follows:

- For each symbol returned from the IB scanners, count the # of tweets for a given symbol per minute. I can probably do this with a query like ($SYMBOL1 or $SYMBOL2 or $SYMBOL3) and manually collate, to avoid going over twatter limits

Yay, I found more fun stuff to do!
 
As an aside, I found an issue with ib_insync or TWS where the scanner stops working overnight. So it needs to be restarted in the AM. Not happy with that but it is what it is. I've set a cron job to do this around 4am.
 
Why SQLite is better than anything else in the world:

Code:
update scanner set parameters = (select json_set(parameters,"$.abovePrice",15) from scanner) where type = "IB";
 
In order for me to do this quantifiably, I need to automate the "keep an eye on the twatter" step. This can be done as follows:

- For each symbol returned from the IB scanners, count the # of tweets for a given symbol per minute. I can probably do this with a query like ($SYMBOL1 or $SYMBOL2 or $SYMBOL3) and manually collate, to avoid going over twatter limits

Done.
 
Twitter search was proving to be a pain in the butt due to limitations on query complexity so I decided to go with the firehose. This is all the code for tracking symbols post IB-scan below.

The other issue I had was that Twitter did not seem to let me search for so-called "cashtags" through the stream. A cashtag looks like $NKE. So I had to do a little hacking to get it to work.

But, keeping things as simple as possible, it's doing the job.

The only problem I can foresee going forward is that this stuff needs to kind of be realtime which means storing in the DB is "ok" but not ideal because the data flow will be world -> process -> database -> clients.

However, in the spirit of doing things as simply as possible, I will just hit the database every time I need to do something until it sucks so hard I need to fix it.

 
Another profitable week. For the first time since I started active trading, I will reward myself by buying myself a new set of bluetooth headphones that can be used while running.

Previously, I had these $20 ali baba headphones that survived 5 whole years, and eventually I dropped them one too many times. These were the Voyager probe of headphones as far as I'm concerned.

Any recommendations welcome.

No specific model recommendations but as a brand, I like Audio-Technica. No fuss Japanese engineering and very good value.
 
Back
Top