PureBytes Links
Trading Reference Links
|
Wrong data sometimes have H=L for some bars, or even C=H=L for non
trading bars. This will cause H-L=0 which is not allowed for the
denominator. To avoid this use Nz((2*C-H-L)/(H-L)).
Check this possibility through your Database purify tool, I think
this is the reason for your -1.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "traderkeith2000"
<traderkeith2000@xxxx> wrote:
> I have created an indicator of the above and plotted it with the
> following.
>
> Plot(MA((2*C-H-L)/(H-L),21),"Intraday Intensity",colorYellow,1);
>
> I have a watchlist with 10 ASX codes in it and in 7 of them it
plots
> fine but in the other 3 it plots as a flat line at the bottom of
the
> chart with a -1 value.
>
> Appreciate any thoughts as to what causes the differences.
>
> Thanks in advance....Keith
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
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 http://docs.yahoo.com/info/terms/
|