PureBytes Links
Trading Reference Links
|
/*Weighted Average*/
F1=20;
F2=15;
F3=10;
F4=5;
F5=1;
w=(F1*c+F2*ref(c,-1)+F3*ref(c,-2)+F4*ref(c,-3)+F5*ref(c,-4))/(F1+F2+F3+F4+F5);
AV=EMA(C,10);
GRAPH2=100*(W-AV)/C;
GRAPH2BARCOLOR=2;
GRAPH0=EMA(GRAPH2,8);
GRAPH1=GRAPH2;
You may change coefficients F1 to F5 to give different weights to
recent or previous data.
It is a good trend follower and gives characteristic divergences.
(See att. gif)
Dimitris Tsokakis
------=_NextPart_001_0008_01C12FED.97356CA0
Content-Type: text/html;
charset="iso-8859-7"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-7" http-equiv=Content-Type>
<META content="MSHTML 5.00.3013.2600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>An application comes from the code:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>/*Weighted
Average*/<BR>F1=20;<BR>F2=15;<BR>F3=10;<BR>F4=5;<BR>F5=1;<BR>w=(F1*c+F2*ref(c,-1)+F3*ref(c,-2)+F4*ref(c,-3)+F5*ref(c,-4))/(F1+F2+F3+F4+F5);<BR>AV=EMA(C,10);<BR>GRAPH2=100*(W-AV)/C;<BR>GRAPH2BARCOLOR=2;<BR>GRAPH0=EMA(GRAPH2,8);<BR>GRAPH1=GRAPH2;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>You may change coefficients F1 to F5 to give
different weights to </FONT></DIV>
<DIV><FONT face=Arial size=2>recent or previous data.</FONT></DIV>
<DIV><FONT face=Arial size=2>It is a good trend follower and gives
characteristic divergences.</FONT></DIV>
<DIV><FONT face=Arial size=2>(See att. gif)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Dimitris Tsokakis</FONT></DIV></BODY></HTML>
------=_NextPart_001_0008_01C12FED.97356CA0--
Attachment:
gif00150.gif
Attachment:
Description: "Description: GIF image"
|