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

[amibroker] Re: Volume Data Field



PureBytes Links

Trading Reference Links





ConditionDAILY=Cross<FONT 
size=2>(MACD<FONT 
size=2>(),Signal<FONT 
size=2>());
TimeFrameSet(inWeekly);
ConditionWEEKLY=Cross<FONT 
size=2>(MACD<FONT 
size=2>(),Signal<FONT 
size=2>());<FONT color=#0000ff 
size=2>
TimeFrameRestore();<FONT face="Courier New" 
size=2>
Filter=ConditionDaily AND ConditionWeekly;<FONT color=#0000ff 
size=2>
AddColumn(C,<FONT color=#ff00ff 
size=2>"");
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Rakesh 
  Sahgal 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Sunday, March 14, 2004 6:49 
AM
  Subject: [amibroker] Help needed for 
  TimeFrame Compress function
  
  Group,
   
  I was trying to look for simple MACD crossover happening simultaenously 
  both on a daily and weekly basis.
   
  The formula I wrote is as under:
   
  <FONT 
  size=3>------------------------------------------------------------------------------------------------
  
  wc = <FONT face="Courier New" 
  color=#0000ff>TimeFrameCompress( 
  Close<FONT 
  size=3>, <FONT face="Courier New" 
  color=#000000>inWeekly 
  ); 
  ST_WEMA = 
  <FONT face="Courier New" 
  color=#0000ff>EMA( wc, <FONT 
  face="Courier New" color=#ff00ff>12 ); 
  
  LT_WEMA = 
  <FONT face="Courier New" 
  color=#0000ff>EMA<FONT face="Courier New" 
  color=#000000>(WC,<FONT face="Courier New" 
  color=#ff00ff>26<FONT 
  size=3>);
  WMACD=ST_WEMA-LT_WEMA;
  WTRGR=<FONT face="Courier New" 
  color=#0000ff>EMA<FONT face="Courier New" 
  color=#000000>(WMACD,<FONT face="Courier New" 
  color=#ff00ff>9<FONT 
  size=3>);
  WBUY=<FONT face="Courier New" color=#0000ff 
  size=3>Cross<FONT 
  size=3>(WMACD,WTRGR);
  DBUY=<FONT face="Courier New" 
  color=#0000ff>Cross(<FONT 
  face="Courier New" color=#0000ff>MACD<FONT face="Courier New" 
  color=#000000>(),<FONT face="Courier New" 
  color=#0000ff>Signal<FONT 
  size=3>());
  Buy=DBUY AND 
WBUY;
  Filter<FONT 
  size=3>=Buy;
  AddColumn<FONT face="Courier New" 
  color=#000000>(Close,<FONT face="Courier New" 
  color=#ff00ff>"Close"<FONT face="Courier New" 
  color=#000000>,1.4<FONT 
  face="Courier New" color=#000000>);<FONT face="Courier New" 
  color=#0000ff>
  AddColumn<FONT face="Courier New" 
  color=#000000>(MACD<FONT 
  face="Courier New" color=#000000>(),<FONT face="Courier New" 
  color=#ff00ff>"D_MACD"<FONT face="Courier New" 
  color=#000000>,1.4<FONT 
  face="Courier New" color=#000000>);<FONT face="Courier New" 
  color=#0000ff>
  AddColumn<FONT face="Courier New" 
  color=#000000>(WMACD,<FONT face="Courier New" 
  color=#ff00ff>"W_MACD"<FONT face="Courier New" 
  color=#000000>,1.4<FONT 
  face="Courier New" color=#000000>);
  <FONT face="Courier New" 
  color=#000000>------------------------------------------------
  <FONT face="Courier New" 
color=#000000> 
  The value that the 
  above formula is reporting for the MACD on a weekly basis is not the one that 
  is obtained by compressing the time frame of the entire chart from daily to 
  weekly. What am I doing wrong here? Thanks for any help,
   
  Rakesh
   
  <FONT face="Courier New" 
color=#000000> 
  <FONT face="Courier New" 
  color=#000000> 
  Do you Yahoo!?<A 
  href="" 
  target=_blank>Yahoo! Mail - More reliable, more storage, less spam 
  Send 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 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.