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

Re: [amibroker] Help needed



PureBytes Links

Trading Reference Links

Plot(C,"",colorGreen,styleCandle);
PlotShapes(IIf(Close >= Ref(Close,-1),shapeUpArrow,shapeSmallDownTriangle)
colorRed);
 
 
-------Original Message-------
 
From: amibroker@xxxxxxxxxxxxxxx
Date: Wednesday, March 05, 2003 11:00:45
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help needed
 
Hi All,
 
I'm trying to construct a simple indicator that will plot a shape 
when a condition is true and a different shape when the condition is 
false.
 
I've tried the following without the correct result.
 
IIf(Close >= Ref(Close,-1),PlotShapes(shapeUpArrow,colorGreen,Layer 
=6),PlotShapes(shapeDownArrow,colorRed,Layer =6));
 
I get a series of red arrows that appear on the first line of the 
indicator and sometimes a series of red arrows that appear on the 
bottom line. 
 
Also, when using the conditional statement,  IIf,then,else;  how does 
one code that the else should be do nothing. 
 
Any help would be appreciated.
 
 
 
Regards
 
Tony
 
 
 
Yahoo! Groups Sponsor
ADVERTISEMENT
 
 
 
 
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. 
 
 

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 http://docs.yahoo.com/info/terms/