I would like to access a List of strings that are built in an indicator from a strategy but I get this error message when compiling the strategy: No overload for method 'Indicator name' takes 0 arguments.
I've been reading thru the help forum and was able to get the indicator to expose the List with:
[Browsable(false)]
[XmlIgnore]
public List<string> myListOfStrings
{
get { Update(); return MyListOfStrings; }
}
In the strategy I've added "AddChartIndicator(indicator name())" below (State == State.Configure) and when trying to read the list with "foreach (string str in MyListOfStrings)" I get the error message mentioned above.
Can this be done ? what am I missing/doing wrong ?
Thank you.
Anthony
Comment