PureBytes Links
Trading Reference Links
|
Sorry Hans,
I'm wrong. I missed your previous message:
"use a 5day (or 10?) simple MA of closing prices
- if the END is HIGHER than the START its UPTREND
- vice versa"
>>> C > C[x] then {trend is up};
he>> A simple MA should give better results :-)
D> Just do some math:
D> C - C[x] =
D> C + C[1] - C[1] + ... + C[x-1] - C[x-1] - C[x] ~
D> MA(C, x-1) - MA(C, x-1)[1] > 0
--
Best regards,
DT mailto:dimatl@xxxxxxxxx
|