TrendMD indicator
The TrendMD (TMD) is one more promising trend indicator. It works in two modes :"Close/Close" or "High/Low". The different is only in price sources which will be used in calculation of specific levels in internal algorithm. According to them, the TMD indicator draws a trend line.
Signals: In general. Red arrow (color by default) is signal for sell and green arrow (color by default) is signal for buy.
Also, TMD provides the alert mode if enabled.-
shander 14.12.2017
Is there any way to use this indicator in an EA?
In my attempts I could not initialize the indicator. I have used it as follows:
[InputParameter ("Sensitivity", ", 3, 1, 999)]
public int sensitivity = 5;
private Indicator _trendMD;
public override void Init()
{
barData = (CurrentData as BarData);
_trendMD = Indicators.iCustom("TrendMD", barData, sensibilidade);
}The error I encounter is as follows:
1:40:35 AM A first instance exception of type "System.ArgumentOutOfRangeException" occurred in "RoboDolar", Line 68:
1:40:35 AM Specified argument was out of range of valid values.
1:40:35 AM Parameter name: offset
Can you help me?