Using DisplayGrid in a strategy
Author: ciconia1
Creation Date: 12/21/2016 5:10 AM
profile picture

ciconia1

#1
CODE:
Please log in to see this code.


I've created a chart pane and want to turn the grid lines off. Using the code above produces this error:
QUOTE:
'WealthLab.ChartPane.DisplayGrid' cannot be assigned to -- it is read only


Can someone give me a working example? I've looked at the F11 guide, but there was nothing there that I could find to help me.
profile picture

Eugene

#2
The compiler error message is crystal clear in what it says: it's a read only property that you cannot modify. When a property is not listed in the QuickRef, a rule of thumb is that it's unsupported (meaning that you're on your own).
profile picture

ciconia1

#3
Ok. Thanks for your help. For what it's worth, I'm not a computer programmer, so I'm probably struggling more than most in this forum. Based on the questions that I've asked so far and their responses, it feels like I'm expected to be immediately up to speed. I'm posting in the 'Wealth-Lab 101' forum for new members and figured that posts would be viewed in that context.
profile picture

Eugene

#4
Sorry for the confusion. I mistakenly thought that the DisplayGrid isn't listed (but it is) and you're working with an undocumented property (which isn't popular). Nonetheless, its use is limited to querying the value. To turn the grid lines off, please use Wealth-Lab Options (F12) > Horizontal/Vertical Gridlines.
profile picture

ciconia1

#5
Thanks for not giving up on me. I'll strive to soak in all that I can.