When developing a custom indicator that calls, as part of its calculations, another custom indicator (not supported) located in a sub-folder (i.e. bin/Indicators/MyIndicators) an error is generated that the indicator is a "method" but it is used like a "type"(CS0118)
However, if the called custom indicator is located under the default bin/Indicators, there is no issue and script will compile fine.
Perhaps the following example help;
xxx = MyIndi(Close, Par1); will not compile if MyIndi is under bin/Indicators/MyFolder, but
xxx = MyIndi(Close, Par1); will compile if MyIndi is located under bin/Indicators
Do I need to code the location of the called custom indicator? How do I need to include the location (MyFolder) so that it will compile?
Thanks.
Comment