Just copy-paste this code in new strategy code.
CODE:
Please log in to see this code.
This simple code ends up having three words with red underline saying:
MyStrategy: The namespace 'WealthLab.Strategies' already contains a definition for 'MyStrategy'
VALUE_TO_PERCENT: Ambiguity between 'MyStrategy.VALUE_TO_PERCENT' and 'MyStrategy.VALUE_TO_PERCENT'
Execute: Type 'Strategy' already defines a member called 'Execute' with the same parameter types
It becomes way too noisy if there are hundreds lines of code.
Is there any way to stop it?
Size:
Color:
Does the Strategy code compile successfully?
Size:
Color:
Yes, it does and the strategy runs just fine.
It looks like a warning or some sort of but
Size:
Color:
Thanks, good to know that it's not urgent.
Size:
Color:
It's not urgent but really ugly for seeing hundreds of them in the code.
Size:
Color:
Apparently the developer has an idea how to overcome red squiggles in next build of WLP.
As a workaround, rename MyStrategy to have a unique title like MyStrategy1, MyStrategy2 etc.
Size:
Color:
The workaround works only once and only within the first instance of the strategy.
If you open the strategy code more than once or you have more than one strategy window open the same code, the workaround works in the first instance only.
Apparently the name is shared amoung WLP process.
Size:
Color: