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.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
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.
Size:
Color:
Thanks Eugene, I will put that on my todo list.
Size:
Color:
Hi,
Is it possible to use the CommentaryWindow and limit it to one or two of the latest trading days and not the entire strategy?
Does it have a Clear Debug function?
Thank you for your help.
Size:
Color:
In the standard loop, you can condition your PrintDebug like this...
CODE:
Please log in to see this code.
To clear...
CODE:
Please log in to see this code.
Size:
Color:
Just as LenMoz has suggested, the same principle should apply to the CommentaryWindow:
CODE:
Please log in to see this code.
Size:
Color:
Thank you both for your response to my inquiry. I’m sorry but apparently I did not compose my question with enough details.
If I was using intraday data 5 min, how do I limit my bars to the last day or two.
Thank you again.
Size:
Color:
Might be something like this (requires Community.Components):
CODE:
Please log in to see this code.
Size:
Color:
Works great! Thank you
Size:
Color:
Glad I could assist.
Size:
Color: