Help please!!!! Intraday Intensity index oscillator

luca1982

Newbie
Messages
1
Likes
0
Hi everyone, my name's Luca from Italy.
I have a problem...i am not able to programme this custom indicator for metatrader Intraday Intensity Index of Bostian. I saw that in the site there is the code for metastock, but i need the code for metatrader. Can you help me?

this is the code for metastock:
var1 := (((2*C)-H)-L);
var1 := If(var1=0,0.01,var1);
var2 := (H-L);
var2 := If(var2=0,0.01,var2);
var3 := Sum((var1/var2)* VOLUME,21);
var4 := (Sum(VOLUME,21));
var5 := (var3/var4);
II := var5 *100;

II
maybe better also the intraday intensity index version standard, not like an oscillator, to view the output:)
Thanks
Regards
 
Top