Allmänt meddelande

Collapse
No announcement yet.

RSI formel

Collapse
X
 
  • Filter
  • Klockan
  • Show
Clear All
new posts

  • RSI formel

    Jag forøker å kalkulara RSI2 manuellt: Blir dette rett?


    cond1=cmpref(C,0,A)

    a1=sub(aref(cond1,1),aref(cond1,2))
    a2=sub(cond1,aref(cond1,1))

    b1=if(gt(a1,0),a1,0)
    b2=if(gt(a2,0),a2,0)

    c1=if(lt(a1,0),sub(0,a1),0)
    c2=if(lt(a2,0),sub(0,a2),0)

    c3=div(add(b1,b2),2)
    c4=div(add(c1,c2),2)

    e1=div(c3,c4)

    RSI=if(eqv(c4,0),100,sub(100,div(100,add(1,e1))))

    det er denne jag vil lage:

    https://www.amibroker.com/guide/afl/rsi.html
    Last edited by Palgrave; 2018-05-20, 18:39.
Working...
X