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

Re: [EquisMetaStock Group] Wkly indicators onto daily chart



PureBytes Links

Trading Reference Links

Hi hkey4


> Thanks Roy for your excellent work on weekly indicators onto daily
> chart.
> And I face some difficulty when implementing Wkly Bollinger Bands onto
> daily chart:
>
> *Comparing BBs [ of Weekly Time Frame against that of Daily Chart],the
> latter lags the former.. that is to say, the current value of wkly BBs
> [onto Daily Chart ] is previous week's BB [ of Wkly Time Frame].
>
> Is it possible to adjust in this area to be more leading?

I wouldn't say you can make the weekly formul "leading", but the "Q" variable allows you to 
eliminate the lag by making the formula dynamic. By that I mean that the current week is updated on 
each daily bar as the week unfolds. The values displayed in dynamic mode are the same values you'd 
see from Bollinger Bands plotted directly on a weekly chart, irrespective of the current day of the 
week. Set "Q" to a default value of 1 to enable "dynamic" mode.

The 0 and 2 settings for "Q" update the weekly values with the addition of Friday or Monday data 
respectively.

  {Weekly Bollinger Bands}
  {2004 Roy Larsen, rlarsen@xxxxxxxxxxxxxx}
  {use on daily charts with Jose Silva's   "Calendar Week counter"}
N:=Input("Weekly Bollinger Band Periods - SMA",1,30,20);
D:=Input("Standard Deviations",0,9,2);
Ma:=Input("Base Average, 0=SMA 1=EMA",0,1,0);
F:=Input("End of Week,  5=Friday  6=Saturday  7=Sunday",5,7,5);
Q:=Input("Display Mode,  0=Static  1=Dynamic  2=Test",0,2,1);
  {0=Display, update on Friday when possible}
  {1=Display, update on each new bar}
  {2=Backtest, update on first bar of new week}
{balance of formula not included}



Kind regards

Roy Larsen
www.metastocktips.co.nz




------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/