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

[amibroker] Help needed



PureBytes Links

Trading Reference Links





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 >= <FONT 
size=2>Ref(Close,-<FONT 
color=#ff00ff>1),<FONT 
color=#0000ff>PlotShapes(shapeUpArrow,colorGreen,Layer 
=6),<FONT 
color=#0000ff>
PlotShapes<FONT 
size=2>(shapeDownArrow,colorRed,Layer =<FONT 
color=#ff00ff>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.