namespace NS { class cname{ public double func1(DataSeries data) { // Accessing High, Low, Close data from a DataSeries object return data.Indicator.High[0]; } } }
OnBarUpdate() { func1(this); // error myDataSeries = new DataSeries(this); func1(myDataSeries); // Error }
I would think I can pull everything out of the current Dataseries, but I don't know how it's called/named.
I'd rather not create a parameter for each price point I might need, because some functions could get ugly in a hurry... (20+ parameters)
Thoughts?
Thanks
Comment