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

Re: WeeklyMas on Daily Chart



PureBytes Links

Trading Reference Links

Anthony,
I have checked the Ema with timeframe.dll on daily chart against the 
same average on weekly chart,
the values are the same and it is normal that we have steps.

I'll give you some precisions and gif example later in the week end

stephane


> 
> I have tried the Average Weekly Bars DLL, It too produces different
> results than Simply plotting moving averages in weekly mode.
> 
> Also, when increasing the periods for the moving average , ( 17 to
> represent 17 weeks ) is used below, the average does not smooth 
out , it
> still has the step design, Should this Be ? Should not the moving
> average smooth out ?
> 
> Thank you
> Anthony
> 
> title="Average Weekly Bars";
> 
> weekprice=TwC();
> WeekPrice1 = TwH();
> weekprice2= TwL();
> 
> Plot(C,"",1,64);
> Plot( WeekPrice ,"",colorWhite,1);
> Plot( TwMA (WeekPrice1,17) ,"",colorBlue,1);
> Plot( TwEMA (WeekPrice2,17) ,"",colorRed,1);
> Stephane Carrasset wrote:
> 
> > there is a dll in third party
> >
> > Title="Average Weekly Bars";
> > WeekPrice = TwC();
> > Plot(C,"",1,64);
> > Plot( WeekPrice ,"",colorWhite,1);
> > Plot( TwMA (WeekPrice,3) ,"",colorBlue,1);
> > Plot( TwEMA (WeekPrice,3) ,"",colorRed,1);
> >
> >
> > > I have borrowod from Anthony Faragasso code in an attempt to
> > produce
> > > weekly time frame moving averages on a daily chart. Below is 
the
> > > code I have used and it produces MAs that have no no 
resemblance
> > to
> > > the MAs on the Weekly chart itself.
> > >
> > > /Weekly MAs on daily charts
> > >
> > > weekstart = DayOfWeek() < Ref( DayOfWeek(), -1 );
> > > weekend = DayOfWeek() > Ref( DayOfWeek(),1);
> > >
> > > /**Establish weekly Price Arrays**/
> > > WeeklyHigh = ValueWhen( weekend, HighestSince( weekstart, 
High ) );
> > > WeeklyLow = ValueWhen( weekend, LowestSince( weekstart, 
Low ) );
> > >
> > > Plot(MA(WeeklyHigh,17),"WkHIGHMA",colorRed,styleLine);
> > > Plot(MA(WeeklyLow,17),"WkLOWMA",colorGreen,styleLine);
> > >
> > > Plot(Close,"CLOSE",colorBlack,styleCandle);
> > > Plot(LinearReg(Close,17),"linReg",colorRed,styleLine);
> > >
> > > Can someone assist me with by pointing out where I have gone
> > wrong.
> > >
> > > Regards,
> > > Keith
> >
> >
> > Yahoo! Groups Sponsor
> ADVERTISEMENT
> 
> 
> >
> > Post AmiQuote-related messages ONLY to: amiquote@xxxx
> > (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.