PureBytes Links
Trading Reference Links
|
Not
sure what you are after.. seems SelectedValue() does the job
....
Cond1 = ROC(C,<FONT
color=#ff00ff>1)>0;Cond2 = <FONT
color=#0000ff>Ref(Cond1,-1);Cond3 = <FONT
color=#0000ff>Ref(Cond1,-2);Ta = <FONT
face="Courier New" color=#0000ff>Sum<FONT
face="Courier New">(Cond1,<FONT face="Courier New"
color=#0000ff>HHV(<FONT
face="Courier New" color=#0000ff>BarsSince<FONT
face="Courier New">(Cond2)+<FONT face="Courier New"
color=#ff00ff>1,<FONT face="Courier New"
color=#0000ff>BarsSince<FONT
face="Courier New">(Cond3)))<=<FONT face="Courier New"
color=#ff00ff>1;Tn = <FONT
color=#0000ff>SelectedValue(Ta);<FONT
color=#0000ff>Plot(Ta,"Tn",<FONT
color=#ff00ff>1,1);<FONT
color=#0000ff>Plot(Tn,"Tn @ "+<FONT
color=#0000ff>NumToStr(BarIndex(),<FONT
color=#ff00ff>1.0,False),<FONT
color=#ff00ff>4,styleArea);<FONT
face=Arial color=#0000ff>
herman
<FONT
face=Tahoma size=2>-----Original Message-----From: Robert Nemeth
[mailto:rjnemeth@xxxxxxxxx]Sent: Friday, March 19, 2004 2:25
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Converting array to number
Could someone tell me how to convert current arrayvalue to
number? I think this is my problem
with:Sum(Cond1,HHV(BarsSince(Cond2)+1,BarsSince(Cond3)))<=1The
variable doesn't seem to be correct in the Periodfield of "SUM" or "HHV".
I tried "SelectedValue" butit did not work and probably is not designed
tofunction this way for a backtest.TnxRobert
__________________________________Do you Yahoo!?Yahoo! Mail -
More reliable, more storage, less spam<A
href="">http://mail.yahoo.comSend
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
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
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|