PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>TJ,
thanks
for reminding me. The solution it seems is to either use lastvalue as Ara
suggested or to loop through the array using For....
Regards,Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: Tomasz Janeczko
[mailto:amibroker@xxxxxx]Sent: Tuesday, April 20, 2004 11:46
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker]
If Then...
Hello,
This is because Close is an ARRAY in AFL (it is treated as
scalar in tradestation because tradestation runs your code MANY times (for
each bar),
instead of once like AMiBRoker).
I explained this in the past:
<A
href="">http://groups.yahoo.com/group/amibroker/message/37908
Best regards,Tomasz
Janeczkoamibroker.com
<BLOCKQUOTE dir=ltr
>
----- Original Message -----
<DIV
>From:
<A title=jcasavant@xxxxxxxxxxx
href="">Jayson
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, April 20, 2004 5:15
PM
Subject: RE: [amibroker] If
Then...
<FONT face=Arial color=#0000ff
size=2>Ara,
I
thought that should work as well....
<FONT face=Arial color=#0000ff
size=2>
<FONT
face=Arial color=#0000ff>
range=<FONT
size=2>C<FONT
face=Arial>/<FONT
size=2>2<FONT face=Arial
color=#0000ff>;
if<FONT
color=#0000ff> (H<FONT
size=2>-C<FONT
face=Arial color=#0000ff size=2> < .1*range)
{
Value1 =<FONT
face=Arial color=#0000ff size=2>H<FONT
face=Arial color=#0000ff size=2>;
Value2 = <FONT
face=Arial color=#0000ff size=2>L<FONT
face=Arial color=#0000ff size=2>;
Value3 = <FONT
face=Arial>2 *
C<FONT face=Arial
color=#0000ff size=2>;
Value4 = <FONT
face=Arial>2 *
O<FONT face=Arial
color=#0000ff size=2>;
}
<FONT face=Arial
color=#0000ff size=2>I get the error indicating IF needs to be numeric or
boolean.<FONT face="Times New Roman"
color=#000000>..
<FONT
size=2>Regards,Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: Ara Kaloustian
[mailto:ara1@xxxxxxxxxx]Sent: Tuesday, April 20, 2004 10:50
AMTo: <A
href="">amibroker@xxxxxxxxxxxxxxxSubject:
Re: [amibroker] If Then...Same way... slighly
different syntaxif (condition){Value1 = xx;Value2
=yy;}----- Original Message ----- From: "bealer_bob"
<rhunt@xxxxxxxxxxxxxxx>To:
<amibroker@xxxxxxxxxxxxxxx>Sent: Tuesday, April 20, 2004 7:37
AMSubject: [amibroker] If Then...> I want to be able to
set a whole series of values if a particular> condition is true. It
appears that the IFF function will set only one> value. I could
create a whole series of IFF statements, but I would> rather set
all values with one statement.>> In Tradestation Easy
Language it would look like this:>> If H-C < .1*Range
then begin> Value1 = H>
Value2 = L> Value3 = 2 *
C> Value4 = 2 * O> End;>>
How would I do something similar in AFL?>> Thanks in
advance,>> Bob>>>>> Send
BUG REPORTS to bugs@xxxxxxxxxxxxx> Send SUGGESTIONS to
suggest@xxxxxxxxxxxxx>
-----------------------------------------> Post AmiQuote-related
messages ONLY to: amiquote@xxxxxxxxxxxxxxx> (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)>
--------------------------------------------> Check group FAQ
at:<A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html>
Yahoo! Groups
Links>>>>>>Send
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page:
<A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend
SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page:
<A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Send BUG REPORTS to
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
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 the Yahoo! Terms of Service.
|