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

RE: [Metastockusers] CMO



PureBytes Links

Trading Reference Links




Try throwing out 
the ancient-style parsing commas.

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: Lionel Issen 
  [mailto:lissen@xxxxxxxxxxxxxx]Sent: Saturday, January 18, 2003 3:05 
  PMTo: Metastockusers@xxxxxxxxxxxxxxxSubject: 
  [Metastockusers] CMO
  Using an old 
  formula from Guppytraders.com, I tried to rewrite it in V 7.x style.  I 
  keep getting an error message  that CMO1 is not a recognized 
  function.  
  <SPAN 
  class=375185522-18012003> 
  Any suggestions 
  please?
  <SPAN 
  class=375185522-18012003> 
  Here is the 
  original formulation at Guppy's site:
  <SPAN 
  class=375185522-18012003> 
  
  The 
  following are Metastock formulas for Tuschar Chande's Momentum Oscillator. For 
  interpretation refer to the book The New Technical Trader, by Tuschar 
  Chande and Stanley Kroll.
  <FONT face="Times New Roman" 
  size=3>CMO_1
  <FONT face="Times New Roman" 
  size=3>Sum( If( C ,> ,Ref( C, -1 ) , ( C - Ref( C ,-1 ) ) ,0 ) ,14 
  )
  <FONT face="Times New Roman" 
  size=3>CMO_2
  <FONT face="Times New Roman" 
  size=3>Sum( If( C ,< ,Ref( C ,-1 ) , ( Ref( C ,-1 ) - C ) ) ,0 ) ,14 
  )
  <FONT face="Times New Roman" 
  size=3>CMO_Final
  <FONT face="Times New Roman" 
  size=3>100 * ( ( Fml( "CMO_1" ) - Fml( "CMO_2" ) ) / ( Fml( "CMO_1" ) + Fml( 
  "CMO_2" ) ) )
  You 
  could also combine the above three formulas into one formula. The syntax would 
  be:
  <FONT face="Times New Roman" 
  size=3>100*((Sum(If(C,>,Ref(C,-1),(C-Ref(C,-1)),0),14))-(Sum(If(C,<,REF(C,-1),(REF(C,-1)-C),0),14))) 
  /((Sum(If(C,>,Ref(C,-1),(C-Ref(C,-1)),0),14)+(Sum(If(C,<,REF(C,-1),(REF(C,-1)-C),0),14))))
  <DIV 
  >
  <P class=text 
  ><FONT 
  face="Times New Roman" size=3>*** These formulas were constructed using 14 
  time periods, you can change this by replacing every occurrence of 14 with 
  your desired time period value
   
  I change the terms 
  a bit and came up with this:
  
   
  cperiods:= input(&#8220;enter 
  periods&#8221;, 5,50,14)
  
  <SPAN 
  >CMO1:= Sum( If( C ,> ,Ref( C, -1 
  ) , ( C - Ref( C ,-1 ) ) ,0 ) ,cperiods );
  <SPAN 
  >CMO2:= Sum( If( C ,< ,Ref( C ,-1 
  ) , ( Ref( C ,-1 ) - C ) ) ,0 ) ,cperiods );
  CMO:= 100 *( ( CMO1 - CMO2 ) / ( 
  CMO1 + CMO2 ) );
  CMO
  Lionel 
  IssenTo 
  unsubscribe from this group, send an email 
  to:Metastockusers-unsubscribe@xxxxxxxxxxxYour use 
  of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT









To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx





Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.