PureBytes Links
Trading Reference Links
|
Dingo and other commentors,
I appreciate your suggestions and comments, but none of these work!
The idea here is to loop thru some tests for a Buy or Sell (or other
result of interest)and exit the FOR, DO or WHILE loop upon the first
occurence.
Sounds simple but no matter what scheme I try AB returns the
following:
ERROR 3
Condition in IF, WHILE, FOR statements has to be numeric or boolean
type.
You cannot use array here.
I'm not entirely sure what is meant by this error and if anyone has a
means of breaking out of a loop I think a lot of folks would be
interested.
Ron
--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> Here's an example on the while:
>
> add a variable ie quit
>
> and then modify your while to something like:
>
> quit = false;
> while ((the stuff already in your while) and (! quit)) {
> .
> .
> // when you want to stop "whiling"
> quit = true;
>
>
>
> }
>
>
> here's an example on the for loop:
>
> For ( i = 1; i < 10; i++)
> {
>
> // when you eant out of the for loop
> i = 99; // you could assign an value as long its => 10
>
> }
>
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
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/
|