Rank: Advanced Member
Groups: Registered, Registered Users Joined: 3/19/2005(UTC) Posts: 2,995
Was thanked: 14 time(s) in 10 post(s)
|
Hey vinclanz-
Welcome to the forum!
Assuming that 'mid point' is similar to typical(), you might try this example:
{ Indicator }
periods:=Input("Typical Price Periods",1,100,20);
periods:=(2*periods)-1;
method:=Typical();
100 - 100/(1+ If(Mov(If(method-Ref(method,-1)<0,-(method-Ref(method,-1)),0),periods,E)=0,1000000,
Mov(If(method-Ref(method,-1)>0, method-Ref(method,-1), 0),periods,E)
/Mov(If(method-Ref(method,-1)<0,-(method-Ref(method,-1)),0),periods,E)
));
note: you can replace 'typical()' with any valid data array
{ Explorer }
Column A [RSI]
RSI(Typical(),5);
Column B [NEW RSI]
periods:=5;
periods:=(2*periods)-1;
method:=Typical();
100 - 100/(1+ If(Mov(If(method-Ref(method,-1)<0,-(method-Ref(method,-1)),0),periods,E)=0,1000000,
Mov(If(method-Ref(method,-1)>0, method-Ref(method,-1), 0),periods,E)
/Mov(If(method-Ref(method,-1)<0,-(method-Ref(method,-1)),0),periods,E)
));
note: change the 'periods:=5;' line to reflect whatever RSI periods you are looking for
|