PureBytes Links
Trading Reference Links
|
X:=If(H=L,
((2*C)-(H-L))/((H+1)-L),
((2*C)-(H-L))/(H-L));
-creates division by minimaly 1 in stead of the 0 error
-division by 1 always equals proper end result (unless Sum or Cum etc. are being used)
-above is also different then
2*C-H-L
-which would result in twice the Close, then minus the High and then minus the Low
-written in another way is still also different then formula at the top
(2*C)-H(-L)
-thus advice is to use parenthesis to control group(s) (v6.5man.-p.203)
-and not to forget to replace x by X in formula, since lowercase isn't upper......
-and the use of clean data (check ups can result in that even Highs are being lower then Low)
-to check use the
H=L
-statement, eg comment out the first and last part { } { }
-resulting in +1 when True and 0 when False
-and use the
H<L
-then check formula further, eg block by block
((2*C)-(H-L))
-and
((H+1)-L)
-and compare notes
-for this first variable, all the above needs to be done and sorted out first and well upfront,
before Volume enters in on the 2nd and following parts of the formula.
Vitaly's post on adding 0.0001 works out well in some formula's, but not here.
If Close = High = Low, then
2*C minus (H-L) results in n
then n divided by 1
would be n and different
then n divided by 0.0001
which would be *10000.
Regards,
Ton Maas
ms-irb@xxxxxxxxxxxxxxxx
Dismiss the ".nospam" bit (including the dot) when replying.
Homepage http://home.planet.nl/~anthmaas
----- Original Message -----
From: "HHP"
To: <metastock@xxxxxxxxxxxxx>
Sent: maandag 12 juni 2000 6:04
Subject: Re: VAP..
Oh I did it again. Make that line:
X:= If(H=L, 0, (2*C-H-L) / (H-L));
HHP
=======================
HHP wrote:
--------snip--------
|