Page 1 of 1

Arranged values ​​in a line in the Output window

Posted: Aug 28 2024
by HellGhostEvocatorX
Do we have the opportunity to configure the output window better? What I imagine is that you can generate several columns, for example. then you could, for example, get an output that is arranged well on top of each other like

Code: Select all

Barnumber 1 High Low Open Close Barnumber 2 High Low Open Close Barnumber 3 High Low Open Close Barnumber 4 High Low Open Close
I tried to generate this myself using "Tabs" and only produced a halfway good solution. I imagine that from about 9 characters onwards a new tab is generated in the output window, but this doesn't seem to be constant for reasons that aren't currently clear to me...

Re: Arranged values ​​in a line in the Output window

Posted: Aug 28 2024
by PeterSt
Isn't 9 the ASCII value of TAB ?
lol

Otherwise, when we'd given the option of a monospaced font (like Courier), the problem would be solved relatively easy (pad your columns with spaces and all will stay aligned).

Re: Arranged values ​​in a line in the Output window

Posted: Aug 29 2024
by HellGhostEvocatorX
Isn't 9 the ASCII value of TAB ?
Thanks for the tip, I didn't know that :), the problem is that this value doesn't seem to be constant. In the output window I only achieved the best result, but individual tabs still move, that is That's my problem... I actually imagine that I can write something like Signal.Output.WriteLine({Value 1},{Value 2}...) and the values ​​are displayed in a structured manner in a line, perhaps separated by adding a column. This could be implemented relatively easily in a WPF application, but the code that I was able to view in Multicharts didn't give me any insight.

Re: Arranged values ​​in a line in the Output window

Posted: Aug 29 2024
by PeterSt
The ASCII 9 value was only kidding and your mentioned 9 should be coincidence ?

With a non-monospaced font (e.g. Arial) it would still be solvable by using the consumed length of a string (the function for that is not on the top of my head) (in a virtual column) and again pad with spaces (left or right) until the length is at the required length.

Re: Arranged values ​​in a line in the Output window

Posted: Aug 30 2024
by HellGhostEvocatorX
The ASCII 9 value was only kidding and your mentioned 9 should be coincidence ?

With a non-monospaced font (e.g. Arial) it would still be solvable by using the consumed length of a string (the function for that is not on the top of my head) (in a virtual column) and again pad with spaces (left or right) until the length is at the required length.
Thanks for the tip, I already understood that, hence the smiley.
Tabs are usually 4 or 8 characters long. In Multicharts I was able to achieve the best results by determining (calculating) when a new tab should start with the value 9.
The text type could actually be the problem.
I've already tried what you describe, but didn't have satisfactory success. But I'm not familiar with fonts and I probably won't be able to change them myself...

Re: Arranged values ​​in a line in the Output window

Posted: Aug 31 2024
by PeterSt
Quick response : If someone can tell me where a hook exists to the Output Window, we could (I could) change the font in there easy enough. But then we could also auto-format the output (interpret/parse the line, and apply some intelligence to it). Looks like a fun thing to do.