PureBytes Links
Trading Reference Links
|
I tried importing this formula into automatic analysis and I get the following error
"unknown identifier line 4, column 12" and the error arrow points at the "O" in "function CMO(array, cmopds)" Any ideas??
Thanks for all you helpJayson <jcasavant@xxxxxxxxxxx> wrote:
Very nice Wayne!
Regards,
Jayson
-----Original Message-----From: Wayne Skerritt [mailto:ecodesign@xxxxxxxxxxx]Sent: Tuesday, January 06, 2004 9:49 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: Re: [amibroker] Conversion to AmibrokerHere's one way to do this:************************************// function version of Chande Momentum Oscillatorfunction funcCMO(periods) {local cmo_1;local cmo_2;local cmo;cmo_1=Sum( IIf( C > Ref( C, -1 ) , ( C - Ref( C ,-1 ) ) ,0 ) , periods ) ;cmo_2=Sum( IIf( C < Ref( C ,-1 ) , ( Ref( C ,-1 ) - C ) ,0 ) , periods );cmo=100 * (( cmo_1 -cmo_2) /( cmo_1+cmo_2));return cmo;}cmo_a = funcCMO(3);cmo_b = funcCMO(5);cmo_c = funcCMO(8);cmo_AV = (cmo_a + cmo_b + cmo_c)/3;Plot(funcCMO(21),"CMO",32,4);Plot(Cmo_AV,"CMO avg",42,2); // 2 = histogramPlotGrid(0,55); //for
black backgroundPlotGrid(50,55);PlotGrid(-50,55);hope this helps :-)Wayne Scdickerm wrote:> Is there a straightforward conversion of this to Amibroker: (CMO(C,3)> +CMO(C,5)+CMO(C,8))/3 If so, would someone please help. >> Thanks a lot,>> Carey>>>>> 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/) > <http://groups.yahoo.com/group/amiquote/messages/%29>> --------------------------------------------> Check group FAQ at: > <A
href="">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> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>> > * Your use of Yahoo! Groups is subject to the Yahoo! Terms
of> Service <http://docs.yahoo.com/info/terms/>.>>Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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. Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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.
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
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 Sponsor
ADVERTISEMENT
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.
|