Markus, As a general rule, Every AFL pass, is just like starting over with the first pass. However, the price arrays and number of bars will change between passes. If you want to keep some information from a previous pass, it has to be stored in a static variable or a file. This actually make life very simple, and as long as your formula is efficient, it will run fast enough for real time use.
If you have generated some array or variables in a loop, they are valid for the rest of the current AFL pass. Dennis On Sep 18, 2007, at 9:19 AM, mwitzler wrote: > Hello, > > I use loops for the first time and would like to know if the results > from a prior run of the loop are somewhat "stored"/"remembered". > > Here´s what I intend to do. > > The loop should check for every bar if cond1 or cond2 applies. Either > one or none of those conditions could apply. > > If cond1 or cond2 applies, _I´d like to assign a value of 1 to a > letter that doens´t change it´s value (i.e. 1) as long as the other > condition doesn´t apply, i.e. if a=iif(cond1,1,0)==1 as long as > b=iif(cond2,1,0) doesn´t apply. > > Does AB remember the values for a and ab from the prior run? > > If not, my code would have to check ALL the preceeding bars and that > would result in a more and more complicated code the more bars AB > iterates thru. > > Or do I have to store the values of a and be in a separate file? If > so, how is this being accomplished? > > Appreciate any kinda input! > > Peace > > Markus >
