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

[amibroker] Re: Multiple time frames question



PureBytes Links

Trading Reference Links




Hi,
I'm not sure why it's not working but this seems to work 
ok.
<FONT 
color=#0000ff>TimeFrameSet( <FONT 
color=#000000>inWeekly<FONT 
size=2> ); sW=2<FONT 
color=#000000>*Avg<FONT 
color=#000000>-L<FONT 
face="Courier New">; rW=<FONT 
color=#ff00ff>2*<FONT 
color=#000000>Avg-<FONT 
color=#000000>H<FONT 
size=2>; pvtW=( <FONT 
color=#000000>H + <FONT 
color=#000000>L + <FONT 
color=#000000>C )/<FONT 
color=#ff00ff>3;<FONT 
face="Courier New"><FONT 
color=#0000ff>TimeFrameRestore<FONT 
face="Courier New"><FONT 
color=#000000>();<FONT 
size=2><FONT 
face="Courier New">WeeklyS=<FONT 
color=#0000ff>TimeFrameExpand(sW,<FONT 
color=#000000>inWeekly<FONT 
size=2>); WeeklyR=<FONT 
color=#0000ff>TimeFrameExpand(rW,<FONT 
color=#000000>inWeekly<FONT 
size=2>); WeeklyPvt=<FONT 
color=#0000ff>TimeFrameExpand(pvtW,<FONT 
color=#000000>inWeekly<FONT 
color=#000000>);  <FONT 
color=#008000>//expanded<FONT 
size=2> Plot<FONT 
color=#000000>(C, 
"Daily Close", 
colorIndigo<FONT 
color=#000000>,64<FONT 
face="Courier New"> ); <FONT 
color=#0000ff>Plot( WeeklyS, <FONT 
color=#ff00ff>"WeeklyS", <FONT 
color=#000000>colorBlue<FONT 
face="Courier New">); <FONT 
color=#0000ff>Plot( WeeklyR, <FONT 
color=#ff00ff>"WeeklyR", <FONT 
color=#000000>colorBlue<FONT 
face="Courier New">); <FONT 
color=#0000ff>Plot(weeklyPvt, <FONT 
color=#ff00ff>"WeeklyPvt", <FONT 
color=#000000>colorYellow<FONT 
color=#000000>);  //plot 
Regards,William Peters<A 
href="">www.amitools.com
-----Original Message-----From: nkis22 
[<FONT 
size=2>mailto:nkishor@xxxxxxxxx]Sent: Thursday 
December 11, 2003 10:05 PMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
[amibroker] Re: Multiple time frames questionAdded weekly pivot- 
weekly avg but why does the graph not plot inbwteen weekly support and 
weekly resistence line? Any idea?TimeFrameSet( inDaily );sD = 
C;TimeFrameSet( inWeekly );sW=2*Avg-L; 
rW=2*Avg-H;pvtW=Avg;                          
//addedTimeFrameRestore();DailyClose=TimeFrameExpand( sD, 
inDaily);WeeklyS=TimeFrameExpand(sW,inWeekly);WeeklyR=TimeFrameExpand(rW,inWeekly);WeeklyPvt=TimeFrameExpand(pvtW,inWeekly);  
//expandedPlot(DailyClose, "Daily Close", colorIndigo,64 );Plot( 
WeeklyS, "WeeklyS", colorBlue);Plot( WeeklyR, "WeeklyR", 
colorBlue);Plot(weeklyPvt, "WeeklyPvt", colorYellow);  
//plot--- In 
amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" 
<TSOKAKIS@xxxx>wrote:> My previous reply [not arrived yet] had 
a wrong title.> Here is the new one>> TimeFrameSet( inDaily 
);> sD = C;> TimeFrameSet( inWeekly );> sW=2*Avg-L; 
rW=2*Avg-H;> TimeFrameRestore();> DailyClose=TimeFrameExpand( sD, 
inDaily);> WeeklyS=TimeFrameExpand(sW,inWeekly);> 
WeeklyR=TimeFrameExpand(rW,inWeekly);> Plot(DailyClose, "Daily Close", 
colorIndigo,64 );> Plot( WeeklyS, "WeeklyS", colorBlue);> Plot( 
WeeklyR, "WeeklyR", colorBlue);> Dimitris Tsokakis> --- In 
amibroker@xxxxxxxxxxxxxxx, "epintoem" <epintoem@xxxx> wrote:> > 
I can plot the daily pivots using AVG, 2*avg-L, and 2*avg-h.> > how 
would I plot the same on a daily chart for the week> >> > I 
should have a straight line for the following week/month basedon> 
> the H,L and C of the prev week/month.> > 
wc=TimeFrameCompress(C,inWeekly);> > 
wh=TimeFrameCompress(H,inWeekly);> > 
wl=TimeFrameCompress(L,inWeekly);> >> > Plotting this using 
the above gives me some wierd plots....> >> > Thanks for 
your help------------------------ Yahoo! Groups Sponsor 
---------------------~-->Buy Ink Cartridges or Refill Kits for your HP, 
Epson, Canon or LexmarkPrinter at MyInks.com. Free s/h on orders $50 or more 
to the US & Canada.<A 
href="" target=_blank><FONT 
size=2>http://www.c1tracking.com/l.asp?cid=5511<A 
href="" 
target=_blank><FONT 
size=2>http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM<FONT 
size=2>---------------------------------------------------------------------~->Send 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx(Web page: 
<A href="" 
target=_blank><FONT 
size=2>http://groups.yahoo.com/group/amiquote/messages/<FONT 
size=2>)--------------------------------------------Check group FAQ at: 
<A href="" 
target=_blank><FONT 
size=2>http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT 
size=2>Your use of Yahoo! Groups is subject to <A 
href="" target=_blank><FONT 
size=2>http://docs.yahoo.com/info/terms/






Yahoo! Groups Sponsor












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.