I have all my methods in UserDefinedMethods.
Most of the variables I have created are private and used in UserDefinedMethods.
However, I had to make some variables public in order to use them to compare in an indicator I created.
I find that odd because I am not changing their state just referencing their value. If I don't it won't compile due to the protection level.
It is common practice for me to have variables as private so I don't have to worry about mistakenly changing their state in any indicators... is there any way to have it as private but still compare in an indicator like the below?
SumOfBars >= LargestValue
SumofBars is defined in public in UserDefinedMethods
LargestValue is defined in public in UserDefinedMethods
Comment