PureBytes Links
Trading Reference Links
|
I have the following formula for On Balance True Range!
Mov(Cum(If(C > Ref(C,-1),1,-1) *
(If(Ref(C,-1) < L,
{Then} (H - Ref(C,-1)),
{Else}
If(Ref(C,-1) > H,
{Then} (Ref(C,-1) - L),
{Else} (H - L) )))), 10 ,E);
Mov(Mov(Cum(If(C > Ref(C,-1),1,-1) *
(If(Ref(C,-1) < L,
{Then} (H - Ref(C,-1)),
{Else}
If(Ref(C,-1) > H,
{Then} (Ref(C,-1) - L),
{Else} (H - L) )))), 10 ,E),10,E);
Mov(Mov(Mov(Cum(If(C > Ref(C,-1),1,-1) *
(If(Ref(C,-1) < L,
{Then} (H - Ref(C,-1)),
{Else}
If(Ref(C,-1) > H,
{Then} (Ref(C,-1) - L),
{Else} (H - L) )))), 10 ,E),10,E),10,E)
Bob wrote:
Here
is one to fool around with. Put an EMA on it or watch for cross of zero.
I think something similar was in the old Livewire software. Called "On
Balance True Range." If anyone finds a good use for it let us know.Cum(
If( C, >, Ref(C,-1),
+ ATR(3) ,
If( C, <, Ref(C,-1), -ATR(3), 0) ))
|