I'm developing a strategy and since there are a lot of potential user defined variables, I want to keep things as much clean and organized as possible.
What I'm trying to achieve is to hide or show some properties based on a boolean:
Example:
I want to hide the Long Entry Line and Short Entry Line variable IF Calculate on given price is false. The moment I turn Calculate on given price to true those two variables should pop up.
Searching the documents and other topics here on the forum, I have come across the [RefreshProperties(RefreshProperties.All)] and [Browsable()] attribute and tried to "dynamically" change that, but I couldn't get it to work.
I have some coding experience but I have never worked with attributes like this and the documentation on Attributes is very small, so any help on the matter is well appreciated
Thanks for your help
Comment