Bar Spacing
Author: boreland
Creation Date: 4/5/2016 5:04 AM
profile picture

boreland

#1
Is there a way to set the default chart bar spacing without using Renderer.BarSpacing?

Perhaps an XML file setting?
profile picture

Eugene

#2
BarSpacing is set in WealthLabConfig.txt. You won't be able to set the property externally (i.e. in a strategy or app) and expect that to be picked up on-the-fly. Any change you made will only be reflected after restarting WLP. Also, your changes will be overwritten by WLP on exit if you made them while the program was running. This is a rule of thumb that applies to almost all configuration files (TXT and XML).
profile picture

boreland

#3
So when closed the application barspacing was set to 4 again in the WealthLabConfig.txt. So my value was overwritten, However, I was able to prevent this by making it a read only file. WLP does not seem to mind that it can not to it on close. Not the best solution I grant you. It would be nice to add bar spacing to chart properties in the next release. Being able to set it to 2 or 2 allows one to have multiple small charts open to better watch the market.
profile picture

Eugene

#4
QUOTE:
However, I was able to prevent this by making it a read only file.

This way you won't be able to save many preferences - not just Wealth-Lab's own but by the majority of addons such as Visualizers, PosSizers etc. IMHO this opens a can of worms. Playing with config files may lead to unknown errors, so I'm going to consider this risk when supporting you from now on - whatever the issue may be.

QUOTE:
It would be nice to add bar spacing to chart properties in the next release

Adding arcane or single-user options has no chance to happen, sorry. This is a design guideline.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).