smma ?Back to topics list |
|
wyf
2010.05.06 11:18
Hi, I often need to see MA(CLOSE,5), but the last bar is changing, so is the last value of MA(CLOSE,5) . I try to fix this by emulating a possible lowest (or highest) value.... I use SMMA, so I searched and find this : ---------------------- Smoothed Moving Average (SMMA) --------------------------------------------- Then I tried the following code: ... Possible=(ExtMA5Buffer[0]*5-Close[0]+low[0])/5; ... I put it on the chart, and the value just feels wrong, and that value vary too much (I guess it should be nearly fixed) --- as a matter of fact, I don't understand the above mentioned SMMA method, so my code is actually about SMA. Could anybody please help me with this code? Thanks. |
