PureBytes Links
Trading Reference Links
|
William,
Frankly speaking, I used this formulas for StochD() and it was OK
after extended checks. So, I thought it could be easily transferred
to Avg or any other array, but it didn't [!!].
I can not explain this.
I also noticed the difference when, instead of pvtW=Avg; I simply
wrote pvtW=Avg-L+L;
I do not use Avg array and there is no experience for its behavior.
Dimitris Tsokakis
--- 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/
|