Login Page - Create Account

Support Board


Date/Time: Fri, 19 Jul 2024 19:19:57 +0000



Post From: Shrink Price Column in DOM

[2023-05-08 21:26:40]
gcUserStudies - Posts: 94
See attached pic, I have already limited the number of price digits to show in the column, but there is still lots of wasted space in the column. Is there a setting that I can change to reduce this column spacing? tks

The only work around I've found is a custom study written to address this specific issue by Frozen Tundra. It copies the price into the label column (or GP1 / GP2). Since it uses GDI tool for drawing you can't have Open GL enabled on your DOM instance. The easiest way is to just add the label column next to price. Then add the study and adjust the colors/alignment etc.. to what you want. Then you can hide the values scale via the chart settings and that will remove the prices from the original price column. Then in your DOM columns just move that one all the way down off to the side. You can adjust the Label/GP1/GP2 columns smaller than the price. The price one seems stuck/fixed to a minimum size. It would be nice if you can adjust it down further based on how many digits you are using for price. But until then, this is a work around. Here is an example before/after and the study settings:

Study download link is here: https://raw.githubusercontent.com/FrozenTundraTrader/sierrachart/main/price_in_label.cpp

You can download the cpp file and put in your C:\SierraChart\ACS_Source folder and then do a remote build and it should work. Analysis->Build Custom Study->Select the file->Build/Remote Build
imagePrice In DOM Label - Before.png / V - Attached On 2023-05-08 21:25:50 UTC - Size: 47.2 KB - 167 views
imagePrice In DOM Label - After.png / V - Attached On 2023-05-08 21:25:56 UTC - Size: 52.23 KB - 160 views
imagePrice In DOM Label Settings.png / V - Attached On 2023-05-08 21:26:24 UTC - Size: 15.04 KB - 130 views