source value

Created at 23 Oct 2014, 13:52
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
HI

hiba7rain

Joined 20.07.2014

source value
23 Oct 2014, 13:52


how to write a function using for example directional movement system as a source value for exponential moving average instead of high,low,open & close
 


@hiba7rain
Replies

Spotware
24 Oct 2014, 09:22

The following code snippet could help you:

            var directionalMovementSystem = Indicators.DirectionalMovementSystem(21);
            var emaOverADX = Indicators.ExponentialMovingAverage(directionalMovementSystem.ADX, 14);

 


@Spotware