Hi Keith and Roy,
If you add the close to your value '”bb”, you now get a always positive value
and you can use StDEV function after that.
And after the use of the StDEV, you substract the close...
a:=Mov(C,5,E);
b:=Mov(C,35,E);
bb:=a-b;
bb; { shown as histogram}
bb; { shown as a line }
bbc:=bb+c;
BBB:=BBandBot(bbc,20,S,2) - c;
BBT:=BBandTop(bbc,20,S,-2) -c;
BBB;
BBT;
I hope it can help you,
Pierre
From: Roy Larsen
Sent: Friday, June 28, 2013 7:07 PM
To: [email protected]
Subject: Re: [EquisMetaStock Group] 3-35 osc
Hi Keith
The problem with bb is that it swings through zero to negative. Bollinger Bands
are primarily for prices (I imagine) and so are constructed to work only with
positive data arrays. You need to rethink how to approach your problem.
For what it's worth MetaStock has already told you what parameter is causing
the problem - bb is "value out of valid range", meaning that it's not a
positive value. It would appear that zero is also an invalid value for bb.
Regards
Roy
----- Original Message -----
From: a
To: Equismetastock
Sent: Thursday, June 27, 2013 4:03 PM
Subject: [EquisMetaStock Group] 3-35 osc
I want to make a 5-35 osc with bands same as Advanced get
the 5-35 is no problem , histogram & line
I tried Std Error bands -- couldn't get them to plot properly
moved to StDev ( Bollinger Bands ) also won't plot
message is basically it's plotting out of range
can't figure that out as i'm trying only 2stdev
here my code so far
a:=Mov(C,5,E);
b:=Mov(C,35,E);
bb:=a-b;
bb; { shown as histogram}
bb; { shown as a line }
BBB:=BBandBot(bb,20,S,2);
BBT:=BBandTop(bb,20,S,-2);
BBB;
BBT;
can anyone see what my coding problem is please or offer any
suggestions--
thanks Keith
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 8503 (20130628) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 8503 (20130628) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com