[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Function (Brain) Check



PureBytes Links

Trading Reference Links

When I tried a WMA for B4 I got a plot, EMA returns some strange 
looking figures,DEMA or TEMA - nothing. Very strange, bug?

Johan


--- In amibroker@xxxxxxxxxxxxxxx, "CS" <res1wgwl@xxxx> wrote:
> Thanks Joe,
> 
> That works.
> 
> It's interesting to note that even Sum(B3,3)/3 fails because of B2 
= 0 at bar 7.
> 
> Thanks,
> Corey Saxe
> 
> 
>   ----- Original Message ----- 
>   From: Joseph Landry 
>   To: amibroker@xxxxxxxxxxxxxxx 
>   Sent: Tuesday, December 30, 2003 5:25 AM
>   Subject: [amibroker] Re: Function (Brain) Check
> 
> 
>   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@xxxx
>   Send SUGGESTIONS to suggest@xxxx
>   -----------------------------------------
>   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
> 
>     a.. To visit your group on the web, go to:
>     http://groups.yahoo.com/group/amibroker/
>       
>     b.. To unsubscribe from this group, send an email to:
>     amibroker-unsubscribe@xxxxxxxxxxxxxxx
>       
>     c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms 
of Service.


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/