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

Re: [amibroker] Re: Quotes Editor in AB



PureBytes Links

Trading Reference Links




I let somebody else 
explain :-)
function MN(n){// local result;result = 
C ;for (i=2;i<BarCount;i++){result = ((i-1)/i)*result + 
(1/i)*Nz(Ref(C,-(i-1))) ;}return 
result;}Plot(MN(2),"MN(2)", 
colorBlue);Plot(MA(C,2),"MA(2)",colorRed);
 
-----Original Message-----From: treliff [<A 
href="">mailto:treliff@xxxxxxxxx]Sent: Thursday, 
March 18, 2004 6:30 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Looping stuff driving me nuts, please help...Looping stuff.... I've 
had some guidance from the forum and TJandthought I got it, but every 
new loop I take on gets stuck.I went back to the basics, as an exercise 
trying to write a functionloop for a simple moving average:function 
MN(n){// local result;result = C ;for 
(i=2;i<BarCount;i++){result = ((i-1)/i)*result + (1/i)*Ref(C,-(i-1)) 
;}return result;}Plot(MN(2),"MN(2)", 
colorBlue);Plot(MA(C,2),"MA(2)",colorRed);Just doesn't work, my 
MN(n) is empty for every n. What'swrong?Thanks for your patience with 
me.treliffSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx(Web page: <A 
href="" 
target=_blank>http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="" 
target=_blank>http://groups.yahoo.com/group/amibroker/files/groupfaq.htmlYahoo! 
Groups SponsorADVERTISEMENTYahoo! Groups 
LinksTo visit your group on the web, go to:<A 
href="" 
target=_blank>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. 


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.