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

[amibroker] if function



PureBytes Links

Trading Reference Links




I am trying to plot a shape based on certain 
conditions
 
Example
 
<FONT face=Arial 
size=2>x               
= stochD(14);
CurrentBar  = BarsSince(Cum(1) == 
1);
 
If (x[CurrentBar] > 80)
{
(PlotShapes(....
}
 
The problem I have is that x is an array ... need 
to use a single number or single array element ... and its subscript has to be a 
numeric value (can not use CurrentBar).
 
Anyone with a workaround for this?
 
Thanks
 
Ara






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.