PureBytes Links
Trading Reference Links
|
Ara,
<FONT
color=#000080>
1-No ';' at the end of
the if statement
2-Use { } to surround
compound statements
I corrected the
code below.
<FONT
color=#000080>Bob
<FONT face=Tahoma
size=2>-----Original Message-----From: Ara Kaloustian
[mailto:ara1@xxxxxxxxxx]Sent: Wednesday, May 07, 2003 10:39
AMTo: AmibrokerSubject: [amibroker] if -
else
Having problem with if - else
structure...
The code below works if I comment out the "else"
section and following line, otherwise I get error 23 (syntax error) pointing
at "else".
Anyone see the problem?
Thanks
Ara
if (<FONT
color=#0000ff>SelectedValue(Plotcolor) == colorYellow
OR colorGold OR
colorRed)
{
PlotShapes<FONT
size=2>(IIf(Plot_High,shapeDownArrow,shapeNone),
Plotcolor,0,Stoc,0);
PlotShapes<FONT
size=2>(IIf(Plot_Low,shapeDownArrow,shapeNone),
Plotcolor,0,Stoc,0);
PlotShapes<FONT
size=2>(IIf(Plot_HDS,shapeDownArrow,shapeNone),
Plotcolor,0,Stoc,0);
}
else
PlotShapes<FONT
size=2>(<FONT
color=#0000ff>IIf(Short_Signal,shapeDownArrow,shapeNone<FONT
face="Courier New">),Plotcolor,0,Stoc,<FONT
color=#ff00ff>0);
<FONT face="Courier New"
size=2>
<FONT face=Arial
size=2>
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
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
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
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|