I'm trying to call the custom indicator CC_1. (attached)
Here's my code:
CC_USD=iCustom(NULL,0,"CC_1",0,0);
Print(" CC_USD =",CC_USD);
CC_EUR=iCustom(NULL,0,"CC_1",1,0);
Print(" CC_EUR =",CC_EUR);
CC_GBP=iCustom(NULL,0,"CC_1",2,0);
Print(" CC_GBP =",CC_GBP);
CC_CHF=iCustom(NULL,0,"CC_1",3,0);
Print(" CC_CHF =",CC_CHF);
CC_JPY=iCustom(NULL,0,"CC_1",4,0);
Print(" CC_JPY =",CC_JPY);
CC_AUD=iCustom(NULL,0,"CC_1",5,0);
Print(" CC_AUD =",CC_AUD);
CC_CAD=iCustom(NULL,0,"CC_1",6,0);
Print(" CC_CAD =",CC_CAD);
CC_NZD=iCustom(NULL,0,"CC_1",7,0);
Print(" CC_NZD =",CC_NZD);
In the experts file I keep getting this error:
CC_1 EURUSD,H1: unknown subwindow number -1 for ObjectCreate function
I'm not sure what's wrong.
My other problem is that it sometimes returns the proper info:
CC_EUR =0.0016
But a lot of the time the info returned is:
CC_EUR =2147483647
I can't figure out why it's returning this number. Could anyone who is better at this than me have a look and try to help? Thanks!
