PureBytes Links
Trading Reference Links
|
Dear Dimitris,
Agree with TJ.
johnny
--- Tomasz Janeczko <amibroker@xxxx> wrote:
> Dimitris,
>
> Please consider adding more of your formulas posted
> here to the
> AFL library at: http://www.amibroker.com/library/
>
> You may also consider posting your work to message
> board at:
> http://www.amibroker.net/boards/
>
> Best regards,
> Tomasz Janeczko
> ===============
> AmiBroker - the comprehensive share manager.
> http://www.amibroker.com
>
> ----- Original Message -----
> From: Dimitris Tsokakis
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Saturday, September 01, 2001 8:52 PM
> Subject: [amibroker] Example III
>
>
> The response of 5 days ma, ema and wma in
> sinusoidal function
> /*MODEL CURVES*/
> maxgraph=8;
> cc1=iif(cum(1)<lastvalue(cum(1))-49,10,20);
> cc10=ma(cc1,10);
> d10=ref(-cc10+30,-10);
>
>
C1=iif(cum(1)<lastvalue(cum(1))-39,cc10,d10);/*LINEAR
> MODEL*/
> C2=iif(cum(1)>lastvalue(cum(1)-50) and
> cum(1)<lastvalue(cum(1)-30),20,10);/*STEP MODEL*/
> PI=4*ATAN(1);
> s=15+5*sin( 2*PI*0.05*(CUM(1)-74));
> C3=iif(cum(1)>lastvalue(cum(1))-50 AND
> cum(1)<lastvalue(cum(1)-30),s,10);/*SINUSOIDAL
> MODEL*/
> /*graph0=c1;GRAPH0BARCOLOR=1;*/
> /*graph1=c2;graph1barcolor=1;*/
> graph2=c3;GRAPH2BARCOLOR=1;graph2style=1;
> /*APPLICATION*/
> graph3=ma(c3,5);graph4=ema(c3,5);
> graph3color=8;graph4color=6;
>
>
w=(20*c3+15*ref(c3,-1)+10*ref(c3,-2)+5*ref(c3,-3)+ref(c3,-4))/51;
> GRAPH5=W;
> GRAPH5STYLE=1;GRAPH5COLOR=12;
> graphxspace=1;
>
> Dimitris Tsokakis
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
> You can, too! Start
> here...
>
> Height:
> 345678 ft
> 01234567891011in
>
> Weight:
> lbs. kg.
>
>
>
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service.
>
>
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
|