What’s does Functions Indicator Angle mean?
3 replies
Truong Cao Xuan
6 years ago #250800
Can someone explain me what Functions Indicator Angle mean?
Example, When i set
Indicator: Simple Moving Average
Period: 3
Coefficient: 0.00005
What Value that function will return?

0
tomas262
6 years ago #254717
Hello,
when you place a moving average on a chart for example you can see with an uptrend it raises up under a certain angle. This is the value this indicator “tries” to return. Please keep in mind it is tricky. Angle depends on the zoom of your chart, it is not absolute value only relative. But you can experiment with certain input values and report back your experience with this function
0
Truong Cao Xuan
6 years ago #254913
Thanks you,
I will try some input value…
0
Jacky quan
8 months ago #292387
hi,
I want to use EMA slope as regime filter, the MT5 code logic as below, but I create the sqx block code, it seems not work. Cloud you give me some advice?
***********************************************
MT5 CORE CODE:
bool GetEMAAngle_PriceNorm(int shift, int lookback, double &angle)
{
double now, prev;
if(!GetBufferValue(emaHandle, shift, now)) return false;
if(!GetBufferValue(emaHandle, shift + lookback, prev)) return false;
if(prev <= 0.0) return false;
double slope = (now – prev) / (lookback * prev);
angle = MathArctan(slope) * 180.0 *1000 / M_PI;
return true;
}
***********************************************
SQX codeEditor
0
Viewing 3 replies - 1 through 3 (of 3 total)