Capturing a lagging indicator

Back to topics list  | 1 2 3 To post a new topic, please log in or register
avatar
20
marine1983 2015.11.16 17:47 #
 

Hi,

 I'm back again with another similar question. Is it possible to compare the loop value with a variable? I need the code to compare the close value of "i" what ever that may be within the loop. Then check that value against another variable? In this case the low of the bollinger bands.

 

for (int i=1;i < 4; i++)

                     {

                       if (iClose(NULL,0,i) < BB202LOW)

                         {

                           BB20LOWVAR=true;

                           break; 
avatar
Moderator
3418
GumRai 2015.11.16 23:13 #
 
marine1983:

Hi,

 I'm back again with another similar question. Is it possible to compare the loop value with a variable? I need the code to compare the close value of "i" what ever that may be within the loop. Then check that value against another variable? In this case the low of the bollinger bands.

 

I don't know what you are asking, you are checking, so you know it is possible.

Whether your check is logical or not, only you can know. 

Back to topics list   | 1 2 3  

To add comments, please log in or register