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;
}
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
CMO v1:
Author: John Smith