[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Looping question



PureBytes Links

Trading Reference Links

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



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/