I hope you had a great weekend :-)
I am facing a very strange situation...
I have created an indicator.
I use this indicator to create another indicator
Basically, I do the following in my new indicator
private MyIndicator mi1;
And then I use it
NewIndicator[0] = mi1[0];
This works fine...
But if i try to do the same in a strategy, instiating a my newindicator won t work and i will get a message CS0118 stating blabla is a 'method' but is used like a 'Type'
The line where it stops is the one where I declare in the properties the new indicator
private NewIndicator ni1;
This is actually since in one of the sample (SampleMultiInstrument) provided with the software, you are using 1 RSI and 2 ADX in this exact same way and the compilation is just doing fine.
could it be because my indicator is calling another indicator ?
best
Comment