PureBytes Links
Trading Reference Links
|
Strange,but would think that dividing by Zero is causing problems
when I explore the range of B2 , but here is a brute force way out.
You can replicate the 3 day moving average by coding the following
B4 = (B3 + Ref(B3,-1) + Ref(B3,-2))/3; // for 3 day ma.
This works.
JOE L.
--- In amibroker@xxxxxxxxxxxxxxx, "CS" <res1wgwl@xxxx> wrote:
> I am attempting to track down why a simple formula won't plot.
> I'm sure that it's something 'embarrassingly' simple.
>
> A1=LinearReg(Close,7);
>
> B1=Close-LLV(A1,28);
> B2=HHV(A1,28) - LLV(A1,28);
> B3=100*(B1 / B2);
> B4=MA( B3 , 3);
>
> Plot(B3,"B3",4,8);
> Plot(B4,"B4",2,1);
>
> B3 will plot but not B4 (it's empty on all data files).
>
> I've got >4200 bars loaded...any ideas?
>
> Thanks,
> Corey Saxe
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
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|