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

Re: [amibroker] Re: WeeklyMas on Daily Chart



PureBytes Links

Trading Reference Links

Thank you for checking, but....I have attached two image files of the
formulas you posted below, showing the two.

The first image "DLL average" shows the formula:

WeekPrice = TwC();
Plot(C,"",1,64);
Plot( TwEMA (WeekPrice,10) ,"",colorRed,1);

The second image "DLL no 2" shows the formula:

Plot(C,"",1,64);
Plot( EMA(C,10) ,"",colorWhite,1);

Clearly there are two different values returned, and also the average
design is different, no steps in the weekly mode as opposed to the daily
mode returned by DLL.

Could you elaborate the following:

"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."

Thank you
Anthony

Stephane Carrasset wrote:

> I have compared on daily chart
> WeekPrice = TwC();
> Plot(C,"",1,64);
> Plot( TwEMA (WeekPrice,10) ,"",colorRed,1);
>
> with on weekly data
> Plot(C,"",1,64);
> Plot( EMA(C,10) ,"",colorWhite,1);
>
> that seems OK
>
>
> >
> >
> > >
> > > 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.
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT


>
> 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: ""

Attachment: Description: ""