HSX Forum

Playing & Trading Strategy

Portmonkey Auto-pick - How to disable to prevent accidental trades -inside-

Posted by: arf on Apr 06, 16:03

This is just a super quick hack, not elegant, not clean, and I'm not sure where to post it.

For Background:  It'd be nice to have an option for Portmonkey to not auto-fill in the stock name when the mouse passes by a tag, drove me nuts.   Having as a checkbox in options would be great, but I'm not sure who to suggest that to.

In the meantime, go to greasemonkey, manage scripts, and edit portmonkey script.  It should open in notepad, or whatever text editor you choose.  

Go down to line 1351 (or search for "mouseover")

You will find this line:

item.addEventListener("mouseover", putTicker, false);

at the start of that line, comment it out by adding two slashes, so it looks like:

        // --slashes stop this line from running-- item.addEventListener("mouseover", putTicker, false);

Save the .js file in the same place, and reload the page.  SBL no longer auto-fills when your cursor goes over a tag.   The bad news is, SBL doesn't fill out when you click on a tag, either, since that action is reserved for opening the security's detail page.   So, to trade in the (no longer) Quick Trade pane, you need to paste the security, then pick amount and action.

That is a dirty hack that still leaves the infrastructure to add an "OnClick" method to fill out the SBL field, but for now, I'm happy enough copy pasta, since it isn't costing me half a million dollars in mis-clicks a day.  I know some of you are better with a mouse and pay attention, but I lost too much, and the weekend is coming up, which means I'd be "erroring" a lot more...

If you have problems with it, just edit the file again and remove the slashes, leaving the original line 1351 intact.  No need to reinstall.

This doesn't effect any of the other portmonkey functionality that I've found so far.





Post a Reply

To post to the forums you must first login!


Lee Cronin's The Mummy (TMUMY) 150000 29.12 (-0.10)          Animal Farm (AFARM) 150000 7.69 (-0.10)          The Devil Wears Prada 2 (PRAD2) 150000 212.59 (-4.37)          Avengers: Doomsday (AVNG5) 61827 544.78 (-0.20)          Michael (MJACK) 150000 237.94 (+5.31)          Legally Blonde 3 (BLON3) 150000 7.21 (-0.10)          Legally Blonde 3 (BLON3) 150000 7.21 (-0.10)          Animal Farm (AFARM) 1 7.69 (-0.10)          Heat 2 (HEAT2) 150000 59.28 (-0.60)          One Spoon of Chocolate (OSOCH) 99 1.40 (0.00)          Animal Farm (AFARM) 150000 7.69 (-0.10)          Shameik Moore (SMOOR) 25000 88.03 (+0.50)          Shameik Moore (SMOOR) 25000 88.03 (+0.50)          Fuze (FUZE) 125000 4.83 (-0.03)          The Horror Fund X (SPOOK) 17432 25.69 (0.00)          The Catch (TCATC) 150000 47.13 (-2.87)          Nimrods aka New Years Rev (NIMRD) 150000 4.91 (+0.53)          Nimrods aka New Years Rev (NIMRD) 150000 4.91 (+0.53)          The Catch (TCATC) 150000 47.13 (-2.87)          The Catch (TCATC) 150000 47.13 (-2.87)          The Devil Wears Prada 2 (PRAD2) 130000 212.59 (-4.37)          The Catch (TCATC) 150000 47.13 (-2.87)          Disclosure Day (SKIES) 15000 155.62 (-0.19)          The Catch (TCATC) 150000 47.13 (-2.87)          The Devil Wears Prada 2 (PRAD2) 150000 212.59 (-4.37)          The Catch (TCATC) 150000 47.13 (-2.87)          Coyote vs. ACME (CVACM) 100000 48.79 (+0.05)          What's Going On (WSGON) 150000 0.17 (+0.02)          The Climb (CLIMB) 150000 0.03 (+0.02)          Michael 2 (MJAC2) 5000 162.54 (+0.99)          Vegas: A Love Story (VALVS) 143678 9.07 (-0.04)          Mina Harker aka Dracula - Blumho (DRACU) 150000 0.19 (+0.01)          Here Comes the Flood (HCTFL) 150000 0.26 (+0.02)          Friday Night Lights (FRIN2) 150000 0.12 (0.00)          Michael (MJACK) 150000 237.94 (+5.31)          Bubble & Squeak (BUBSQ) 150000 0.26 (+0.02)          Bad Blood (BDBLD) 150000 0.04 (+0.01)          In the Grey (NGREY) 150000 19.31 (-0.06)          A Manual for Cleaning Women (AMFCW) 150000 0.06 (+0.02)          In the Grey (NGREY) 150000 19.31 (-0.06)          Jehanne d'Arc (JDARC) 150000 28.08 (+1.65)          Jehanne d'Arc (JDARC) 75000 28.08 (+1.65)          Ibelin (IBELN) 150000 7.29 (+1.11)          The Devil Wears Prada 2 (PRAD2) 150000 212.59 (-4.37)          Ibelin (IBELN) 1 7.29 (+1.11)          Ibelin (IBELN) 50000 7.29 (+1.11)          CBS: DMV (DMVCBS) 25000 13.15 (+0.07)          The Devil Wears Prada 2 (PRAD2) 35000 212.59 (-4.37)          Jehanne d'Arc (JDARC) 150000 28.08 (+1.65)          Jehanne d'Arc (JDARC) 75000 28.08 (+1.65)