Is what I am trying to do possible in a Strategy? They don't seem to like my adding classes. Maybe they need to be "partial." I can get them to compile but then I have run time errors such as 'Can't put + sign in a name.' There is no plus signs anywhere.
Any suggestions? Any sample code for doing this?
Thank you.
_________________________________________
Thinking of something like this:
IncidentID = IncidentArray[x].IncdID This to be accessible in places the body such as OnBarUpdate where I can use logic as part of trade decision.
Where IncdID would be a property in the Class Incidents.
public class Incidents
{
public int IncdID //these should be read only once populted in the class. Don't know if the {get; set;} is the approach to use.
{get; set;}
public string IncdKind
{get; set;}
// as many and needed
public Incidents()
{
IncdID = 12;
IncdKind = Std.dev(something) > Threshold;
.
.
}
I have not found a construction to seems to work in a Strategy that I could put into an array. I have looked at Struct for the object and Stack or List instead of Array. Not sure what kind of constructor to use for the Class.
I discovered that when adding a class to a Strategy, additional instances of the Strategy show up in the chart's Strategy chooser. This does not appear to be something that users are expected to be doing.
Comment