"

CMO v1

by Dr.Hamdi Boukamcha
Name:
CMO v1 [ ru | cn ]
Author: Scriptor (2008.03.01 09:10)
Downloaded: 1654
Download:
CMO v1   CMO_v1.mq4 (3.2 Kb) View
Author: igorad

CMO_v1 indicator.

CMO v1
1 comment  To post a new comment, please log in or register

I fixed tis indicator so that it works right away. Before it was gettig a divide by zero error and not showing the indicator when you load it.

near the end of the program is the line:

CMO[shift]=(SumBulls-SumBears)/(SumBulls+SumBears)*100;

replace this with:

if(SumBulls+SumBears != 0)
{
CMO[shift]=(SumBulls-SumBears)/(SumBulls+SumBears)*100;
}
else
{
CMO[shift]= 0;
}

Share this article

Leave a comment