Is it possible to use multiple CommentaryWindow ?
Author: traderray
Creation Date: 7/13/2017 6:06 PM
profile picture

traderray

#1
I need to have 2 commentary windows. When I try the following I get 2 copies of the last commentary. Is there a command to close the first window or is there another way to achieve this?


CODE:
Please log in to see this code.
profile picture

Eugene

#2
It's not going to work. The static class is programmed with only one window in mind. Let's start with why do you think you need to have 2 commentary windows?

P.S. This will not work as the path is ignored internally:
CODE:
Please log in to see this code.

Output is always sent to one file under %AppData%.

Also, consider using the newer, more convenient syntax with extension methods.
profile picture

traderray

#3
I have a script that produces, for example:
1. Set of data and charts giving an overview of the market.
2. Set of data and charts giving WLP and external data for positions held.
3. Set of data and charts giving WLP and external data for certain watchlists.
....

I find it very helpful to run this script and then simply scan down the reports viewing the data as I scan. I want to be able to go to any set of data without needing to scan down a single commentary window until I find the data I want.
profile picture

traderray

#4
Eugene,

I believe I have a reasonable solution.

1. I will create the html files myself from the script with each having it's own name.
2. I will open each file with the following sample coding.
CODE:
Please log in to see this code.


I believe this will work fine. Do you have a better solution?

Thanks for your help.
profile picture

traderray

#5
Eugene,

I have changed my example coding to create a html file and then open it. It works fine. Is there a simpler solution?

CODE:
Please log in to see this code.
profile picture

Eugene

#6
Ray, I'm fine with whatever works for you. The library's source code is open so you're welcome to modify it to suit your needs.
profile picture

traderray

#7
Thanks Eugene, I will put that on my todo list.