 |
QuantShare
2010-08-16 09:57:56
0
|
|
Best Answer
Here is the formula to get a signal when the maximum difference between these four moving averages is lower than a specific threshold.
The 4 moving averages merge in one point.
max(absolute(sma(44) - sma(10)), max(absolute(sma(10) - sma(20)), absolute(sma(20) - sma(100)))) < 0.3
The "0.3" is the threshold level. This means that if the difference between sma44 and sma10 is less than "0.3" then the formula considers that the value of these moving averages is the same.
|
|