C# passes class variables as copy of the variable and structures as a copy of the content. But, you could easily check that. Define a test dataseries, pass it from the hosted indicator to the hosting indicator and try a modification of the dataseries variable in the hosting indicator. Then check if the modification is visible in the hosted indicator.
In C/C++ I would simply check the address value of the concerning variable, but I don't know how to do that in C#.
An alternative would be to use a method with ref/out-parameters. That approach passes variable-references for sure.
Regards
Ralph
Comment