Skip to main content

DV2 for Amibroker (AFL)

iea5324 almost 16 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 2)
  • Tags:
    oscillator, amibroker

DV2 is an alternative to RSI.

Read more about it here: DV2

Screenshots

Indicator / Formula

Copy & Paste Friendly
function PercentRank( Data, Periods )
{
Count = 0;
for ( i = 1; i < Periods + 1 ; i++ )
{
Count = Count + IIf ( Ref( Data, 0 ) > Ref( Data, -i ), 1, 0 );
}
return 100 * Count / Periods;
}

a1 = Close / ((H+L)/2);
a2 = Ref(Close,-1) / ((Ref(H,-1)+Ref(L,-1))/2);
DVu = ((a1+a2)/2)-1;
DVb = PercentRank( DVu, 252 );
Plot( DVb, "DV(2)", colorRed);
//}

Plot(40,"",colorGreen);
Plot(70,"",colorRed);

1 comments

Leave Comment

Please login here to leave a comment.