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

RE: [amibroker] if function



PureBytes Links

Trading Reference Links




<SPAN 
class=377341813-30042003>Ara,
This 
is part of a for loop? perhaps you could set a second variable to 1 if x[current 
bar]>80?
<SPAN 
class=377341813-30042003> 

If (x[<SPAN 
class=377341813-30042003>i] > 80)
<SPAN 
class=377341813-30042003>y=1
 
Jayson 
not 
the best guy for loop questions :))
<FONT face=Tahoma 
size=2>-----Original Message-----From: Ara Kaloustian 
[mailto:ara1@xxxxxxxxxx]Sent: Wednesday, April 30, 2003 2:48 
AMTo: AmiBroker - BBSubject: [amibroker] if 
function
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
 
AraSend 
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.