The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/“CPA

Reply to thread

AI's 5th try

cat list.txt | sed -e 's/<[^>]*>//g' -e 's/\s/+/g' -e 's/++*/|/g'



My code [spaghetti code :D ]

cat list.txt | sed -e 's/<[^>]*>//g'  -e 's/\s\s*/|/g' -e 's/|/ /4' -e 's/|/ /4' -e 's/|/ /4'




I beat the machine.


The purpose is to  find all the day's form 4 insider trading buys and sales of stocks, that by law must be reported, by the CIK number that is my key (like [keyword])  matching the ticker symbol in my database.


Look all the form 4's files for the day!

[CODE=bash]#massive one-liner


$ cat list.txt | sed -e 's/<[^>]*>//g'  -e 's/\s\s*/|/g' -e 's/|/ /4' \

-e 's/|/ /4' -e 's/|/ /4' |grep '|4|'|sort|uniq -c |sort -nr|less

[/CODE]


Ranked by the most filings that day -- when insiders buy  the stock price often goes up ---- when insiders sell  the stock price often goes down.


But I am the first in line before the  various financial news services will report it days ahead (I hope). That is the tactical maneuver. I can bot  this and automate it and have a list waiting for me in the morning first thing.


this is the page where my 'registered'  bot "User-Agent: Mozilla/5.0 Paragon/1.0 goes (public data): EDGAR Current Events


Total form 4: 656/4968 or13.20%

Suspect form 4:1 26/4968 made my List as shown or 2.536%

That might be worth my time to further investigate. Maybe 4 of the 17 stock may prove interesting.


Point is: Now I have narrowed the search from  the  list of 490 to 17 lookup and research. Tomorrow I will try to get the exact location  so my bot can retrieve the files. the files are in XML or JSON format and they can  be parse with PHP or python then loaded in a table on my database.






AI `gets it` and explains my tactical maneuver:

Need a to-do list and an organized plan? --Ask AI to lay it out for you ...

[ATTACH=full]32935[/ATTACH]



Thanks for coming to my TED Talk!


MI
Back