Zephyrrr's profileZephyrrr's BlogPhotosBlogLists Tools Help

Blog


    December 25

    Technical Indicators in MetaTrade 4

    1. Moving Average
     Simple Moving Average (SMA): SMA = SUM(CLOSE, N) / N
     Exponential Moving Average (EMA): EMA = (CLOSE(i) * P) + (EMA(i - 1) * (100 - P))
     Smoothed Moving Average (SMMA): SMMA (i) = (SMMA(i - 1) * (N - 1) + CLOSE (i)) / N
     Linear Weighted Moving Average (LWMA): LWMA = SUM(Close(i)*i, N) / SUM(i, N)
     
    2. Awesome Oscillator
     MEDIAN PRICE = (HIGH+LOW)/2
     AO = SMA(MEDIAN PRICE, 5)-SMA(MEDIAN PRICE, 34)
     
    3. Acceleration/Deceleration — AC
     AC = AO-SMA(AO, 5)
     
    4. Accumulation/Distribution (A/D)
     A/D = SUM[((CLOSE — MINIMUM) — (MAXIMUM — CLOSE))*VOLUME/(MAXIMUM — MINIMUM), N]
     
    5. Alligator
     MEDIAN PRICE = (HIGH + LOW) / 2
     ALLIGATORS JAW = SMMA (MEDEAN PRICE, 13, 8)  (Blue one)
     ALLIGATORS TEETH = SMMA (MEDEAN PRICE, 8, 5) (Red one)
     ALLIGATORS LIPS = SMMA (MEDEAN PRICE, 5, 3)  (Green one)
     
    6.Average Directional Movement Index
     ADX = SUM[(+DI-(-DI))/(+DI+(-DI)), N]/N
     
    7. Average True Range
     True Range is the greatest of the following three values:
    difference between the current maximum and minimum (high and low);
    difference between the previous closing price and the current maximum;
    difference between the previous closing price and the current minimum.
     The indicator of Average True Range is a moving average of values of the true range
     
    8. Bollinger Bands
     middle line (ML): ML = SUM [CLOSE, N]/N
     top line (TL): TL = ML + (D*StdDev)
     bottom line (BL): BL = ML — (D*StdDev)
     
    9. Commodity Channel Index
     Typical Price: TP = (HIGH + LOW +CLOSE)/3
     SMA(TP, N) = SUM[TP, N]/N
     D = TP — SMA(TP, N)
     SMA(D, N) = SUM[D, N]/N
     M = SMA(D, N) * 0,015
     CCI = M/D
     
    10. DeMarker
     DeMax(i): If high(i) > high(i-1) , then DeMax(i) = high(i)-high(i-1), otherwise DeMax(i) = 0
     DeMin(i): If low(i) < low(i-1), then DeMin(i) = low(i-1)-low(i), otherwise DeMin(i) = 0
     DMark(i) = SMA(DeMax, N)/(SMA(DeMax, N)+SMA(DeMin, N))
     
    11. Elder-Rays
     Bull Power: BULLS = HIGH - EMA
     Bear Power: BEARS = LOW - EMA
     
    12. Envelopes
     Upper Band = SMA(CLOSE, N)*[1+K/1000]
     Lower Band = SMA(CLOSE, N)*[1-K/1000]
     
    13. Force Index
     FORCE INDEX (i) = VOLUME (i) * ((MA (ApPRICE, N, i) - MA (ApPRICE, N, i-1))
     
    14. Fractals
     
    15. Gator Oscillator
     
    16. Ichimoku Kinko Hyo
     
    17. Market Facilitation Index
     BW MFI = RANGE*(HIGH-LOW)/VOLUME
     
    18. Momentum
     MOMENTUM = CLOSE(i)/CLOSE(i-N)*100
     
    19. Money Flow Index
     TP = (HIGH + LOW + CLOSE)/3
     MF = TP * VOLUME
     MR = Positive Money Flow (PMF)/Negative Money Flow (NMF)
     MFI = 100 - (100 / (1 + MR))
     
    20. Moving Average Convergence/Divergence
     MACD = EMA(CLOSE, 12)-EMA(CLOSE, 26)
     SIGNAL = SMA(MACD, 9)
     
    21. Moving Average of Oscillator
     OSMA = MACD-SIGNAL
     
    22. On Balance Volume
     If today’s close is greater than yesterday’s close then: OBV(i) = OBV(i-1)+VOLUME(i)
     If today’s close is less than yesterday’s close then: OBV(i) = OBV(i-1)-VOLUME(i)
     If today’s close is equal to yesterday’s close then: OBV(i) = OBV(i-1)
     
    23. Parabolic SAR
     SAR(i) = SAR(i-1)+ACCELERATION*(EPRICE(i-1)-SAR(i-1))
     
    24. Relative Strength Index
     U — is the average number of positive price changes;
     D — is the average number of negative price changes.
     RSI = 100-(100/(1+U/D))
     
    25. Relative Vigor Index
     RVI = (CLOSE-OPEN)/(HIGH-LOW)
     
    26. Standard Deviation
     StdDev = SQRT (SUM (CLOSE - SMA (CLOSE, N), N)^2)/N
     
    27. Stochastic Oscillator
     %K = (CLOSE-LOW(%K))/(HIGH(%K)-LOW(%K))*100
     %D = SMA(%K, N)
     
    28. Williams' Percent Range
     %R = (HIGH(i-n)-CLOSE)/(HIGH(i-n)-LOW(i-n))*100
     
    August 07

    宁波-慈溪,75km,3h

    上周回家,选择自行车,出发前一天越想越紧张,大概80km,按照以前的速度,至少4h,这大热天的怎么骑,还一个人。而且更恐怖的是还要回来。不过最后还是决定试一把。
     
    第二天4:30起床,5点多出发,天气不错。环城北路背面那条路还是不错的,不过为了保存体力,也没骑多快,还是有点心虚。本来想走九龙湖那条线的,以前慈溪过来就走那条线的,路好里程短。可天生路盲,有个地图还没用,又怕像上次去九龙湖多走了n远,最后还是拐到国道上去了。看来以后得配个GPS了。一路上没水,本来想路上买的,到了骆驼,还不渴,想过会再买。没想到这一去就再也找不到买水的地方了,要都没有也行,但总是看到路对面有小店,真是虽。坚持着吧,一直骑到收费站出去,才有个小村庄,稍微进去一点找到了小店。看来机会还是靠把握的。
     
    出国道,走中横线。路是真好,有专门人行道,还基本没什么人,但路两边全是田野没树的,连个遮荫休息的地方也没有。路也笔直笔直的一眼望不到头。以前讨厌十字路口,现在真是盼着十字路口,看到了路口才稍微有点成就感。这么好的路况,骑得飞快,30km/h的速度保持了1h。过去的路一直不错,路上又休息了一次,然后就到家。一共76.8km,3h8m。
     
    这么好的路,以后换辆公路车,努力2。5h到家,这样就和我自己坐车时间差不多了。宁大这个鸟不生蛋的地方出来还要转公交车。
     
    回家呆了一星期,真是休息,笔记本也没带,天天就是吃饭睡觉看电视玩小孩。看了挺多集武林外传,没事看看真不错,十分期待找个人试试葵花点穴手。
     
    回来坐车,把两个轮子一拆使劲塞进后备箱,然后就舒舒服服的回来了,路上还使劲看着路线,以前就睡觉来着。不过好像还是记不住。
    July 05

    该死的Montoya

    才看完F1美国大奖赛的录像,倒霉的Kimi这次遇到Montoya这个大虽神,竟然在第一个弯角就被队友直接撞出赛道退赛。 郁闷的Kimi!
     
     
    今天温网不知第几天了,李娜8进4失败,不过也创记录了。看李娜比看孙甜甜等舒服多了。看女网看Sharapova等还是挺重要的。