PureBytes Links
Trading Reference Links
|
This does work similar to the code (same results) I posted earlier,
but sW and rW needs to be reversed. I think, TimeFrameGetPrice
functions are more straightforward.
TimeFrameSet( inWeekly );
pvtW=( O + H + L + C )/4;
sW=2*pvtW-H;
rW=2*pvtW-L;
TimeFrameRestore();
WeeklyS=TimeFrameExpand(sW,inWeekly);
WeeklyR=TimeFrameExpand(rW,inWeekly);
WeeklyPvt=TimeFrameExpand(pvtW,inWeekly); //expanded
Plot(C, "Daily Close", colorIndigo,64 );
Plot( WeeklyS, "WeeklyS", colorBlue,1,1.4);
Plot( WeeklyR, "WeeklyR", colorBlue,1,1.4);
Plot(weeklyPvt, "WeeklyPvt", colorYellow,1,1.4); //plot
I couldn't get 4 decimals to be displayed in the title.
rgds, Pal
--- In amibroker@xxxxxxxxxxxxxxx, "William Peters"
<williampeters@xxxx> wrote:
> Hi,
>
> I'm not sure why it's not working but this seems to work ok.
>
> TimeFrameSet( inWeekly );
> sW=2*Avg-L;
> rW=2*Avg-H;
> pvtW=( H + L + C )/3;
> TimeFrameRestore();
>
> WeeklyS=TimeFrameExpand(sW,inWeekly);
> WeeklyR=TimeFrameExpand(rW,inWeekly);
> WeeklyPvt=TimeFrameExpand(pvtW,inWeekly); //expanded
>
> Plot(C, "Daily Close", colorIndigo,64 );
> Plot( WeeklyS, "WeeklyS", colorBlue);
> Plot( WeeklyR, "WeeklyR", colorBlue);
> Plot(weeklyPvt, "WeeklyPvt", colorYellow); //plot
>
> Regards,
> William Peters
> www.amitools.com
>
>
>
>
>
> -----Original Message-----
> From: nkis22 [mailto:nkishor@x...]
> Sent: Thursday December 11, 2003 10:05 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Multiple time frames question
>
>
> Added weekly pivot- weekly avg but why does the graph not plot in
> bwteen weekly support and weekly resistence line? Any idea?
>
> TimeFrameSet( inDaily );
> sD = C;
> TimeFrameSet( inWeekly );
> sW=2*Avg-L; rW=2*Avg-H;
> pvtW=Avg; //added
> TimeFrameRestore();
> DailyClose=TimeFrameExpand( sD, inDaily);
> WeeklyS=TimeFrameExpand(sW,inWeekly);
> WeeklyR=TimeFrameExpand(rW,inWeekly);
> WeeklyPvt=TimeFrameExpand(pvtW,inWeekly); //expanded
>
> Plot(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 based
> on
> > > 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
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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
http://docs.yahoo.com/info/terms/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
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 http://docs.yahoo.com/info/terms/
|