Topic: how to use a custom indicator class inside another indicator?

I see in one of the standard indicators they can instantiate another indicator for use in the first indicator. Ex, in Oscillator of ATR:

Average_True_Range ATR1 = new Average_True_Range(slotType);

So Oscillator of ATR can use Average True Range.

Is there a similar way I can instantiate one of my custom indicators in another?

Ex, in CustomIndicator2:

CustomIndicator1 importedCustomIndicatorInstance = new CustomIndicator1(slotType);

thanks

Re: how to use a custom indicator class inside another indicator?

Does it work?

Re: how to use a custom indicator class inside another indicator?

I never got it to work, I think somewhere Mr Popov said it wouldn't work, a custom indicator cannot be used in another indicator.

But -- workaround -- you can get FSB source code, add your indicator to the FSB source, build the project, use that exe in FSB folder, then you can call it in other custom indicators like above.

Re: how to use a custom indicator class inside another indicator?

Thanks!