Page 1 of 1

Indicator inside indicator

Posted: Wed Feb 15, 2017 4:17 am
by eliasw
Hello. Is it possible to use another indicator (or several indicators) in a custom indicator? I can't find something like that in the indicators API docs, but it seems strange that you should have to reimplement for example SMA if it's needed in an indicator.
Would like to see a code example.
I'm using FT2.

Re: Indicator inside indicator

Posted: Thu Feb 16, 2017 7:07 am
by FX Helper
Hello,

Sorry, but the indicator doens't have an access to other indicator's data.

The only way is to create it as an EA.

Re: Indicator inside indicator

Posted: Thu Feb 16, 2017 8:16 am
by eliasw
OK.
But now I saw that there is a function GetMA() in TechnicalFunctions.h that can generate various kinds of MAs, which solves my problem.
Why isn't it documented?