I'm currently removing attributes from the properties grid for a strategy where they were previously tune-able and I got in quite a spin trying to test using in code defaults that were not being recognised.
I eventually used my imagination and re-introduced the attribute visibility again and set default values to what I expected and re-ran the test and all worked correctly. I then used a conditional compile statement to effectively comment out the visibility of the attributes and re-ran the test and viola the test now succeeded as expected but with the properties no longer visible.
You're not updating the visible property list when you make changes to the strategy and seem to be simply using any defaults that are in the database to set non-visible properties. This is a very subtle bug and will be causing problems that are extremely hard to find (a bit like forgetting to declare canonical form base classes virtual in C++ which results in ending up with 2 instances of the base class but can only affect 1 of them).
Regards,
Paul

Comment