Everything works as expected when that indicator is added to the chart through the Indicators selection dialog. However, if that indicator is saved
as part of a template and then that template is used as the default Chart Template when opening a new chart, then the variable which is supposed to be initialized to a Color is NOT initalized.
I have attached a simple indicator to demonstrate. Note that the variables are given inital values just like the wizard does.
The indicator simply prints to the output window the value of the variables.
To reproduce the bug:
-Save the indicator as part of a template.
-Open the output window.
-Open a chart with the template as the default.
-You will see in the output that the value of the color variable is empty.
-There are other variables, (an int and a double) that clearly have their values initialized correctly.
I believe this is some kind of bug that the color field is not being initialized like other variables are.
-Gary
Comment