Download MetaTrader 5

Capturing a lagging indicator - page 3

To add comments, please log in or register
Chris
65
Chris  

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; 
Keith Watford
Moderator
10566
Keith Watford  
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. 

123
To add comments, please log in or register