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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    585 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    340 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X