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

Re: [amibroker] Multiple Timeframes in the same sheet



PureBytes Links

Trading Reference Links



<FONT 
color=#000000>
Tomasz,
 
I DON'T want the weekly or monthly bars spread apart to 
match the daily bars. I am trying to create the plots as they appeared 
in the previous post.
 
To try your suggestion anyway, I used the following formulas on the 
weekly plot. Picture below.
TimeFrameSet( 
inWeekly );<FONT 
size=2>
TimeFrameExpand<FONT 
size=2>(Close, <FONT 
size=2>inWeekly,expandLast<FONT 
size=2> );
TimeFrameExpand<FONT 
size=2>(Open, <FONT 
size=2>inWeekly,expandLast<FONT 
size=2> );
TimeFrameExpand<FONT 
size=2>(High, <FONT 
size=2>inWeekly,expandLast<FONT 
size=2> );
TimeFrameExpand<FONT 
size=2>(Low, <FONT 
size=2>inWeekly,expandLast<FONT 
size=2> );
CL=<FONT 
size=2>IIf(C<FONT 
size=2>>O,<FONT 
size=2>1,0); //color 
of bar
Plot( 
Close, "Weekly 
Prices", CL ,styleBar<FONT 
size=2> );
 
--and--
 
TimeFrameSet<FONT 
size=2>( inWeekly<FONT 
color=#0000ff> );
EC=<FONT 
size=2>TimeFrameExpand(Close<FONT 
size=2>,inWeekly,<FONT 
size=2>expandLast);
CL=<FONT 
size=2>IIf(C<FONT 
size=2>>O,<FONT 
size=2>1,0); //color 
of bar
Plot( 
EC,"Weekly Prices",<FONT 
face=Verdana size=2>CL, <FONT 
size=2>styleBar);
 
Neither formulas resulted in the weekly bars being 
expanded to line up with the daily bars. Yes, I understand 
that IF the weekly bars were expanded like they should have been, THEN the 
dates for the weekly bars would be correct.
 
Back to my original problem:
I have preferences set to display 255 bars. Periodicity 
in the toolbar is set to DAILY.
 
A. In the top frame, I need 255 bars to be displayed 
for daily. This works.
B. I need the dates in the daily X-axis to correspond 
to these daily bars. This works.
 
C. In the middle frame, I need 255 bars to be displayed 
for weekly. This works.

D. I need the dates in the X-axis of the weekly bars to 
correspond to these weekly bars. This does not 
work, with or without <FONT 
color=#0000ff>TimeFrameExpand.
 
E. In the bottom frame, I need 255 bars displayed for 
monthly. This works.

F. I need the dates in the X-axis of the monthly bars 
to correspond to these monthly bars. This does <FONT 
color=#ff0000>not work, with or without <FONT 
color=#0000ff>TimeFrameExpand.
 
G. Display all three frames in the same sheet at 
the same time. Just like the pictures in the previous post. (I suspect this 
is the cause of the problem.)  
 
Thanks,
-CS
 
<IMG alt="" hspace=0 
src="png00178.png" align=baseline 
border=0>
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Tomasz Janeczko 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Tuesday, September 09, 2003 1:19 
  AM
  Subject: Re: [amibroker] Multiple 
  Timeframes in the same sheet
  
  Hello,
   
  Currently as per Read Me description you have to use 
  TimeFrameExpand ...






Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



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


Attachment: Description: ""