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

[amibroker] Fed Statement



PureBytes Links

Trading Reference Links

Dear all,

Is it possible to implement Conditional looping in AFL along the 
lines of the following. For example what is the most effective way of 
translating this Tradestation language example. ( I think.)

snip ---------------------------------
For Counter = 13 downto 7 Begin
 if linearregvalue(close,Counter,-1)>linearRegValue(Close,Period,-1)  
then Period=Counter;
End;
Cord=linearregvalue(Close,Period,-1);
---------------------------------

>From what I read I can substitute the appropriate AFL keywords (eg: 
linearregvalue = linearreg etc...

But how do you implement a conditional loop using arrays? AFL "if" 
command does not appear to operate on arrays only boolean values.

I'm sure its possible but I'm programmably challenged.

Regards,

Graeme Oswin



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/