forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Forum

Forex Software, Forex Strategies, Expert Advisors Generator

You are not logged in. Please login or register.


Forex Forum → Technical Indicators → how to use a custom indicator class inside another indicator?

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 4

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!

Posts: 4

Pages 1

You must login or register to post a reply

Forex Forum → Technical Indicators → how to use a custom indicator class inside another indicator?

Similar topics in this forum