Hello all,
Trying to convert Easylanguage code to EFS.
1. Need Rate of Change of an Exponential MA of a variable length that the user would define.
2. If Rate of change is positive, would put a small green dot on bar
3. If Rate of change is negative, would put a small yellow dot on bar.
Thanks and the Easylanguage code is below if you need it.
MC
Input: Price(Close),Length(20),RC(1);
Condition1 = RateOfChange((XAverage(Price, Length)), RC ) > 0; {Up Slope}
Condition2 = RateOfChange((XAverage(Price, Length)), RC ) < 0; {Down Slope}
value1 = H - ((h-l)/2.1);
value2 = L + ((h-l)/2.1);
PlotPaintBar(value1, value2, "PriceBarMA");
If Condition1 Then
SetPlotColor(1, Green)
Else
If Condition2 Then
SetPlotColor(1, Yellow);
Trying to convert Easylanguage code to EFS.
1. Need Rate of Change of an Exponential MA of a variable length that the user would define.
2. If Rate of change is positive, would put a small green dot on bar
3. If Rate of change is negative, would put a small yellow dot on bar.
Thanks and the Easylanguage code is below if you need it.
MC
Input: Price(Close),Length(20),RC(1);
Condition1 = RateOfChange((XAverage(Price, Length)), RC ) > 0; {Up Slope}
Condition2 = RateOfChange((XAverage(Price, Length)), RC ) < 0; {Down Slope}
value1 = H - ((h-l)/2.1);
value2 = L + ((h-l)/2.1);
PlotPaintBar(value1, value2, "PriceBarMA");
If Condition1 Then
SetPlotColor(1, Green)
Else
If Condition2 Then
SetPlotColor(1, Yellow);
Comment