On the CCI Indicator I am trying to say:
If the CCI(14)[0]>50;
do something
and if the CCI(14)[0]<-50;
do something
I tried using the "private int" like this:
private int period = 14;
private int ccimax = 50;
private int ccimin = -50;
and I also put these under "Properties".
The problem is when I'm in the Indicator settings, it won't accept a negative number, like -50...if I enter in the number -50 it always returns to the number 1. When entering the positive number 50...it works ok.
Should I be using something other that "private int"?
or what can I use to allow indicator setting to accept a negative number like -50 to reflect the -50 line of the CCI?
Thanks
Comment