Jump to content

We have moved to Discord. Please click here to join us in the Trading Terminal Discord server.



These forums are read-only.

Alastair

Enhanced Finviz Fundamental Data HotKey/Button

Recommended Posts

Alastair
 
This tool could benefit community members as I am sure others could use. It's a quick stock fundamental data function.
 
It would be the similar to the Trade Ideas Single Stock Window or DAS Fundamental Window, we just using Finviz free info. in a small browser window.
 
Its basically the below hot button command  (Norm shared it), but I want to implement with enhancements for OCD personality types like me.
 
 
 
  1. Use the Opera browser. Chrome is my default but I do not want to mess with that setup. Other users may want another.
  2. Opera loads on 1st hotkey open/click if browser app not started and subsequent clicks with %SYMB% from selected/highlighted montage
  3. Browser window auto placed into the specific yellow area below on my scanner monitor screen, screengrab attached, or as req'd by a user.
  4. Browser autofocus or onload, adjusts and scrolls to the important data which is shown on browser e.g. float, short Interest, RVOL, ATR, Inst Ownership, etc. .............  Kinda like a OnLoad window.scroll JS or CSS function.  They have both vertical and horizontal.
  5. Cleanup the browser interface i.e. Remove all tools bars, buttons, search bars, maybe also the scroll bars and borders
  6. If browser opened in COGNITO mode I think the browser does not save/remember style, position, etc.
  7. Anything else you could suggest to improve functionality, future maintenance and presentation?

Can u help? 

 
Thanks in advance
 
 

Screenshot 2021-02-02 081313 Scanner Screen.png

Edited by Alastair

Share this post


Link to post
Share on other sites
Alastair

@Kylek29  based on our prior communication ur interpretation is correct.

As u suggested:

1. A scrapping script - thought abt it, but this maybe hard to maintain in the future depending on dev tools and potential changes. I am always looking for a tool set tht will be maintenance free. Your choice if u know an great API.

 

2. Custom Style Sheet, CSS - This maybe next best imho as it can be easier to maintain. Again I would lean on ur knowledge base/skill for dev tool.

Generally u have the concept for functionality correct.  I am sure members without data package  will find this tool useful as everything will be pulled from free Finviz source, just packaged with hotkey/button and presented in a nice layout and incorporate a traders workflow.

 

Not trying to make anything complex for u that takes alot of ur time, something simple and quick esp in the short term.

 

So when hot button is clicked, a browser ( Opera in example below) displays just the tech info from FINVIZ for easy reading.

Could hide address bar and tab if possible making it look cleaner. Dark Reader extension used in the example below.

Screenshot 2021-02-03 234135 Scanner Monitor Example.png

Edited by Alastair

Share this post


Link to post
Share on other sites
Alastair

Just dropping some thoughts / notes which are in my head from my initial investigations abt this potential tool :

 

1.  Will use Custom Hot Buttons feature on main window of DAS interface, tool bar.

2. The DAS hotkey "Shell" command to call OPERA does not seem to work, or the syntax to be used is not clear. Opera uses launcher.exe as executable

3. Opera has flag which when disabled can remove the address bar  opera://flags giving more display space.

4. Currently using two extensions in Opera a) Window Resizer an b) Stylus for CSS processing

5. Have a CSS for Stylus that formats a dark theme created by @Paul aka Aurbano and it highlights some values for easy reading (see image below)

6. Not sure how the hot button or DAS "Shell" command would open Opera with multiple clicks. May need to force a new tab in main window for each ticker symbol by passing a parameter in command line.  Do not want it to open multiple windows of the Opera application.  100+ tabs/tickers open should not be a problem

7.  Scroll Bar Positioning - CSS seems to have functionality to preposition scroll bars called "scroll-snap" 

8. Position and size of opened browser window requires  14 - 16 down arrow clicks and 4 right arrow clicks to focus the symbol data.

9. Generally using CSS seems like best implementation method.

10. Can CSS present data values so they self adjust based on window size/shape kinda similar how TI dynamically formats content in a window as its being resized. If yes then #7 above is not an issue or could be version 2.0 of this tool.

11. Scroll bars could be hidden in CSS also giving more display space if required.

 

 

Screenshot 2021-02-05 202011OPERA in lower Right Cnr.png

Screenshot 2021-02-08 123612 OPERA Browser.png

Edited by Alastair

Share this post


Link to post
Share on other sites
Alastair

@KyleK29  Trying to use DAS hotkey command "Shell" to open the Opera browser passing the symbol using %SYMB% in a new tab but cannot seem to get the correct syntax.  Googled it but no success. Do you know  the correct syntax to call the Opera browser  with %SYMB% in a new tabs?

 

Share this post


Link to post
Share on other sites
KyleK29
7 hours ago, Alastair said:

@KyleK29  Trying to use DAS hotkey command "Shell" to open the Opera browser passing the symbol using %SYMB% in a new tab but cannot seem to get the correct syntax.  Googled it but no success. Do you know  the correct syntax to call the Opera browser  with %SYMB% in a new tabs?

 

The proper syntax for Opera will likely make the DAS shell command choke.

You can work around this by creating a batch file to wrap the command - I created a batch file called finviz.bat with the following code inside C:\DAS Trader Pro directory:

echo off
set symb=%1
start C:\Users\Kylek\Desktop\Opera\launcher.exe www.finviz.com/quote.ashx?t=%symb%

^^ You'd need to change the program path to match where the launcher.exe is located on your system.

^^ Download a portable version of Opera, so you have flexibility in where you want it, and you can have multiple installed where the customizations won't apply. Can download here: https://www.opera.com/computer/thanks?ni=stable_portable&os=windows

 

The DAS Hotkey looks like this:

shell finviz.bat %SYMB% ;

 

You can add the "FocusWindow montagea;" before the shell command if you wish. Not necessary if you make it a hotbutton on the montage.

 

Edited by KyleK29
  • Thanks 1

---------------------------------------------------------
Profile / Project Pages (Dynamic Hotkeys, StreamDeck Files, and other contributions are located here)

Share this post


Link to post
Share on other sites
Alastair

Ok seems logical, BUT cannot get it to work.

1.  Installed portable in DAS folder   .../Browser/.....

2.  Created .BAT file, see attached.......the spaces may cause prob but tested with "....."s around string

3.   launcher.exe works when its double clicked

4.  .BAT does nothing when I double click.......so I assume issue is in .BAT file.

Wht u see ?

 

 

 

finviz.txt

Edited by Alastair

Share this post


Link to post
Share on other sites
Alastair

Another question.....montagea is a built in command ?

I also see mymontagea also in other command strings 

I assume its reference to the first montage started esp when u have not named the windows ?

Share this post


Link to post
Share on other sites
Paul aka Aurbano

@Alastair, as @KyleK29 pointed out I spent some time tunning a dark theme for Finviz Long time ago. You can use the Stylus Add-on on Firefox or Chrome and add the theme for the page that will darken all the information plus invert the white background on most of the charts. Very easy to use. Here is the link : https://33kk.github.io/uso-archive/?author=nonap2k&style=164469    You can use it with the DarkReader Add-on and some tweaks of your flavour....

Regarding the functionality I'd recomend to have a look to the powerfull AutoHotKey Script : https://www.autohotkey.com/ ... I used it to code some extra functionality for TWS long time ago and works like charm. As I don't use DAS, I am very sorry I cannot help you to integrate both, but the logic behind the script is not that difficult.

Share this post


Link to post
Share on other sites
KyleK29
On 2/8/2021 at 8:57 PM, Alastair said:

Another question.....montagea is a built in command ?

I also see mymontagea also in other command strings 

I assume its reference to the first montage started esp when u have not named the windows ?

It's done to focus a specific window. If you right-click the title bar of a DAS window and fill in the name, you can target it. My montage window happens to be given the name "MONTAGEA" .. so for me it'd be FocusWindow MONTAGEA;  

There's no default title given to windows, so you have to name them if you want it to target. I do this for the StreamDeck so I can use the hotkey anywhere (since it needs a Montage selected to work). If you just set it as a hotbutton on the montage, you can omit that part.

 

On 2/8/2021 at 8:50 PM, Alastair said:

Ok seems logical, BUT cannot get it to work.

1.  Installed portable in DAS folder   .../Browser/.....

2.  Created .BAT file, see attached.......the spaces may cause prob but tested with "....."s around string

3.   launcher.exe works when its double clicked

4.  .BAT does nothing when I double click.......so I assume issue is in .BAT file.

Wht u see ?

 

 

 

finviz.txt 111 B · 0 downloads

 

If so had to guess, it's related to the quotes. CMD is very picky.  You can try to wrap the entire command in the batch after the start portion (so it includes the parameters), but the easiest way would likely be to move it to the someplace without spaces .. like C:\das_browser\launcher.exe 

And then remove the quotes altogether.

 

Also remember for the %SYMB% portion to function, a montage has to be selected. It'll pass as the literal string %SYMB% otherwise.

 

 


---------------------------------------------------------
Profile / Project Pages (Dynamic Hotkeys, StreamDeck Files, and other contributions are located here)

Share this post


Link to post
Share on other sites
Alastair

@KyleK29 Tried tht, (both the quotes around full command and installed so the pathname  has no spaces), still no dice/not working......if my old brain serves me, for DOS commands from the early years sometimes you had to SET PATH and the ENVIRONMENT variables in autoexec.bat file when a DOS based computer starts up to use run programs for certain dir.

Does that apply here ?

Could that have anything to do with it ?  Maybe ur dev computer already has all that setup  from past projects ?

If so pls guide me on how yours is setup........its been awhile, like 30+ yrs.

 

ahhhhh........maybe yours work  bcoz    a) its installed under C:\Users and     b) No spaces in your path......just thinking out loud.

Will try a path like ur under C:\Users in addition to no spaces.

Edited by Alastair

Share this post


Link to post
Share on other sites
Alastair

@KyleK29 Making small steps forward,  Works from cmd prompt, using START see everything in image attached.

.BAT file does not work from explorer or cmd prompt.

U see anything tht could be causing .BAT not to work while START command works ?

 

Screenshot 2021-02-10 212740 for Kyle finviz.png

Edited by Alastair

Share this post


Link to post
Share on other sites
Alastair

Solved the problem !!!

When creating the .BAT do not copy/paste from this web page.  Type all the 3 lines in a fresh notepad file. 

This web page seems to contain spurious non-printable / non-visible characters which tends to corrupt how the .BAT file is processed in Windows.

Once u use / type into a new file it will work as Kyle has spec'd.

Big big thank you to Kyle.

Gone to work on the CSS now so it will focus on the data box on initial load.

Share this post


Link to post
Share on other sites
Alastair
On 2/9/2021 at 1:50 AM, Paul aka Aurbano said:

@Alastair, as @KyleK29 pointed out I spent some time tunning a dark theme for Finviz Long time ago. You can use the Stylus Add-on on Firefox or Chrome and add the theme for the page that will darken all the information plus invert the white background on most of the charts. Very easy to use. Here is the link : https://33kk.github.io/uso-archive/?author=nonap2k&style=164469    You can use it with the DarkReader Add-on and some tweaks of your flavour....

Regarding the functionality I'd recomend to have a look to the powerfull AutoHotKey Script : https://www.autohotkey.com/ ... I used it to code some extra functionality for TWS long time ago and works like charm. As I don't use DAS, I am very sorry I cannot help you to integrate both, but the logic behind the script is not that difficult.

 

@Paul aka Aurbano Thank you for your feedback, appreciate your efforts in tuning the dark theme as it works wonders on my eyes, perfectly . Been using ur work for over 6 mths both themes. finviz and protradingroom. I would like to do additional tuning on this page, --  www.finviz.com/quote.ashx?t=amzn  --   specifically I would like to highlight the following words with a dark gold colour:

Inst Own
Shs Float
Short Float
Rel Volume
Avg Volume
Volume
ATR
Price

Please advise which tool or visual editor you used to do the tuning so I could also use this tool to make the above changes.  Basically trying to make a branch of your original Dark Theme for the above URL only, which is below the finviz domain.

 Thanks.

 

Edited by Alastair

Share this post


Link to post
Share on other sites
Paul aka Aurbano

Dear @Alastair .... thanks God I am a total nerd and I take this as a challenge LOL ....

There is no way to achieve that problem using the CSS technology used to template the dark theme due to the limitation of the actual language. In CSS lang, you need an object definition in order to access any property of any given object and in this case, that comes from the original HTML code itself. As there is no different definitions for every title in the table, there is no way to achieve that problem using CSS only.

HOWEVER ... I coded a small script in other scripting language for you that will solve your needs using other technology. You will need 2 steps :

a ) Install in your browers a new add-on called Custom JavaScript (I tested all this using chrome)

LINK : https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija

b) You need to copy the following script into the add-on for it to use it on any given Finviz URL:

highlights = ["Inst Own", "Shs Float", "Short Float", "Rel Volume",
    "Avg Volume", "Volume", "ATR", "Price"];
hl_color = "Yellow";
highlights.forEach(function(hl) {
    $("td:contains('"+hl+"')").css('color', hl_color).css('font-weight','800');
});

See screenshot attached too ! ... you will get a nice Yellow and Bold highlight on the strings you asked.

Hope this helps you .... if you need to pop up any other string, just modify the script to include it in the first variable between quotes and comma separated. Easy peasy !

Bests regards,

Paul.

 

Capture_20210214_150958.jpg

Capture_20210214_151341.jpg

  • Thanks 1

Share this post


Link to post
Share on other sites
Alastair

Awesome,  awesome,  awesome !!! Thank  God for nerds, they make the world go round.  ...... I use to walk along with folks like you, 20 - 25 yrs ago, but slipped "down" into management, pushing paper around. Biggest mistake of my IT career.  Will get back eventually.....I hope.....LOL.

Will try this today when I get back to my trade station. Should also work on Opera as its Chromium based and we can install all Chrome extensions.

Will report back to you. Again thank you sir.

 

Share this post


Link to post
Share on other sites

[[Template core/front/global/mobileNavigation is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.