PureBytes Links
Trading Reference Links
|
strade,
Metastock doesn't offer the best in utilities to perform a fill. We
can code something that is similar though. In the code provided below
I have written it so that it fills from the midband up to the
upperband and from the midband down to the lowerband. Another option
would be multiple lines between the bands. Try this though and see if
it is similar to what you are seeking.
{Bollinger Band}
Prd:=Input("Select MA Period ",1,500,20);
Dev:=Input("Std Deviations 1.9=10prd,2.0=20prd,2.1=50prd",1.9,2.1,2.0);
Mbd:=Mov(C,Prd,S);
Ubd:=BBandTop(C,Prd,S,Dev);
Bbd:=BBandBot(C,Prd,S,Dev);
Cnt:=Cum(1)/2=Int(Cum(1)/2);
Upfl1:=If(cnt,ubd,mbd);
Upfl2:=If(cnt,mbd,ubd);
Lwfl1:=If(cnt,Bbd,mbd);
Lwfl2:=If(cnt,mbd,Bbd);
Upfl1;Upfl2; Lwfl1;Lwfl2;
ubd;mbd;Bbd;{end}
Enjoy,
Preston
--- In equismetastock@xxxxxxxxxxxxxxx, "strade_hn" <strade_hn@xxx>
wrote:
>
> Hi all, I would like to creat a bollinger band indicator that the
zone
> between BB top and BB bottom is filled with colour, anyone know how
to
> do that?
> Thank you very much.
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|