HSX Forum

Playing & Trading Strategy

Development of a starbond "Tool of the Trade" question <inside>...

Posted by: JustWondering (a.k.a psisson) on Dec 09, 09:33

One type tool that I believe is essential for trading starbonds is one that calculates the next adjust price. Kaigee and HowProfitable are excellent tools for this purpose, but if those sites should go away or fail to be kept up to date then starbonds would be difficult to trade. Thus I'd like to develop a tool of my own.

HSX used to provide XML feeds that provided lots of useful information about securities, but now that those feeds are gone. The development of a starbond tool requires an application to fetch an HTML page of a starbond, parse the content, and then fetch and parse each individual moviestock page to get information about price, gross, release pattern, etc. Besides the obvious inefficiences and waste of HSX resources and bandwith, there are challenges with the data on the html pages. One of the biggest challenges is the release pattern. It is extremely difficult to programmatically determine the estimated adjust price because the release pattern has no standard format such as those used for other fields like "Status". Without a standard format, it is difficult to determine the adjust date and order of adjust. Sites like Kaigee and HowProfitable have managed to figure it out, but I haven't been able to reliably do so.

Can anyone (especially @Kaigee or @elchan) who has developed a tool provide any insight into how to reliably determine the release pattern? Regular expressions would be terrific, but any info would be helpful.

Here are a few regexps I currently use, but I know this is not reliable for parsing the non-standard "Release Pattern":

case pattern
when /\Awide\Z/i then "WIDE"
when /\Alimited\Z/i then "LIMITED"
when /[^\;]*\;.*?\bwide\b/i then "WIDE"     # i.e limited 12/11; wide 12/18
when /\ANY\/LA\Z/i then "LIMITED"
else "UNKNOWN"
end

Thanks!





Post a Reply

To post to the forums you must first login!


Father Joe (FTJOE) 150000 6.00 (0.00)          Animal Friends (ANFRN) 10000 54.06 (-0.11)          Lobo (LOBO) 100000 20.64 (-0.06)          Super Troopers 3 (STRO3) 150000 21.82 (-1.23)          Super Troopers 3 (STRO3) 150000 21.82 (-1.23)          Alien sequel (ALIE6) 15000 57.34 (-0.27)          One Night Only (ONTON) 40000 19.29 (-0.74)          Varanasi (VARAN) 50000 7.43 (+0.24)          Super Troopers 3 (STRO3) 150000 21.82 (-1.23)          Wonka 2 (WONK2) 144691 46.62 (-3.06)          Justin Lin (JLIN) 15000 152.22 (-0.30)          Wonka 2 (WONK2) 150000 46.62 (-3.06)          Helldivers (HELDV) 25000 111.76 (+1.03)          One Night Only (ONTON) 9990 19.29 (-0.74)          Last Night At The Lobster (LNATL) 150000 4.00 (0.00)          Helldivers (HELDV) 25000 111.76 (+1.03)          Lobo (LOBO) 2000 20.64 (-0.06)          Super Troopers 3 (STRO3) 150000 21.82 (-1.23)          Super Troopers 3 (STRO3) 10000 21.82 (-1.23)          Last Night At The Lobster (LNATL) 50000 4.00 (0.00)          Father Joe (FTJOE) 150000 6.00 (0.00)          Wonka 2 (WONK2) 10000 46.62 (-3.06)          Last Night At The Lobster (LNATL) 50000 4.00 (0.00)          One Night Only (ONTON) 150000 19.29 (-0.74)          Father Joe (FTJOE) 150000 6.00 (0.00)          Father Joe (FTJOE) 100000 6.00 (0.00)          Last Night At The Lobster (LNATL) 150000 4.00 (0.00)          Father Joe (FTJOE) 150000 6.00 (0.00)          Drifter (DRFTR) 150000 5.21 (+1.68)          Ice Cream Man (ICREM) 150000 7.46 (-1.18)          Ice Cream Man (ICREM) 150000 7.46 (-1.18)          Last Night At The Lobster (LNATL) 150000 4.00 (0.00)          Last Night At The Lobster (LNATL) 150000 4.00 (0.00)          Father Joe (FTJOE) 150000 6.00 (0.00)          Last Night At The Lobster (LNATL) 150000 4.00 (0.00)          Father Joe (FTJOE) 150000 6.00 (0.00)          Last Night At The Lobster (LNATL) 150000 4.00 (0.00)          Miami Vice '85 (MIVIC) 150000 104.86 (-2.31)          Father Joe (FTJOE) 150000 6.00 (0.00)          Prima Facie (PRMAF) 150000 1.68 (-0.32)          Father Joe (FTJOE) 150000 6.00 (0.00)          Miami Vice '85 (MIVIC) 150000 104.86 (-2.31)          The Bourne Dilemma (BORN6) 23911 91.16 (+0.04)          Jane (JANE1) 150000 11.70 (+1.32)          Spa Weekend (SPAWK) 150000 13.99 (+0.66)          Spa Weekend (SPAWK) 150000 13.99 (+0.66)          Mutiny - Opening Weekend (MUTNY.OW) 99999 10.66 (-0.45)          Jennifer's Body 2 (JBOD2) 150000 14.47 (+0.68)          Jennifer's Body 2 (JBOD2) 150000 14.47 (+0.68)          Jane (JANE1) 150000 11.70 (+1.32)