Hello people, can someone convert this indicator in ProRealCode? I’m having difficulties in translating the median price calculation, but maybe i’m missing something easy here. Link of the article and how to use this indicator here: http://www.financial-hacker.com/the-market-meanness-index/ var MMI(var *Data,int Length) { var m = Median(Data,Length); int i, nh=0, nl=0; for(i=1; i<Length; i++) { if(Data[i] > m && Data[i] > Data[i-1]) nl++; else if(Data[i] < m && Data[i] < Data[i-1]) nh++; } return 100.*(nl+nh)/(Length-1); } Thanks. Best regards.