Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print( in column)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Print( in column)

    Is it possible to Print() in column. I havent found anything about that in tutorial.
    If i do Print(zlist[z]) and Print(alist[a])) it will print in the same column in the OW.
    I would like to see them in two columns so it can be more easy to track numbers visually.

    Also it returns a lot of numbers, maybe 200 or more. The indicator when the OW is open get slower and jumpy. Is there anything i can do to smooth the process or do i need to upgrade to a 32GB ram?

    TY

    #2
    Hello frankduc,

    To print in a column would require you to combine the two prints and add space between the text. The output window by default does not use a fixed width font so column printing in line will not be possible. If you change the output windows font to using a fixed width font, you can then use the string.format to make columns:

    Code:
    Print(string.Format("{0,-10} - {1,-10}, {2, 10} - {3,5}", Close[0], Open[0], High[0], Low[0]));
    If your system has "consolas" font, that is fixed width otherwise you can search online to find what fonts you have that are fixed width.

    Regarding the slowness, I don't believe ram would be helpful in this case unless you are already exceeding your ram. You can use the task manager to find out.
    The CPU would be the main source of what controls processing so if you are doing heavy calculations which are using the CPU heavily, you can see slowdowns. In some cases of large amounts of data being printed you may also see that the output window is playing catch up and printing lines after processing. If you are outputting a huge amount of data it can be expected to require some time to write the lines to the output window which otherwise requires little to no time to actually process in the script.

    I look forward to being of further assistance.



    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    44 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    54 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    34 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    95 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    57 views
    0 likes
    Last Post PaulMohn  
    Working...
    X