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

Weighted Smoothing



PureBytes Links

Trading Reference Links

/*WEIGHTED MOVING AVERAGE(WMA)*/
w=(20*c+15*ref(c,-1)+10*ref(c,-2)+5*ref(c,-3)+ref(c,-4))/51;
AV=EMA(C,8);
graph0=c;
graph0style=128;
graph0barcolor=1;
graph1=w;
graph1barcolor=4;
graph2=av;
graph2style=1;
graph2barcolor=14;

COLORED BARS

Some articles prefer the histogram color to represent whether the 
bar is an up bar (green) or a down bar (red).
You may see that also.

/*Weighted Moving Average Difference(WMAD)*/
w=(20*c+15*ref(c,-1)+10*ref(c,-2)+5*ref(c,-3)+ref(c,-4))/51;
AV=EMA(C,10);
XD=100*(W-AV)/C;
GRAPH2=XD;
GRAPH2STYLE=2+4;
GRAPH2BARCOLOR=iif(XD>REF(XD,-1),5,4);
GRAPH1BARCOLOR=iif(XD>REF(XD,-1),5,4);

Dimitris Tsokakis

------=_NextPart_001_0012_01C1300E.97415080
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><U>WEIGHTED MOVING AVERAGE</U></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>/*WEIGHTED MOVING AVERAGE(WMA)*/</FONT></DIV>
<DIV><FONT face=Arial 
size=2>w=(20*c+15*ref(c,-1)+10*ref(c,-2)+5*ref(c,-3)+ref(c,-4))/51;<BR>AV=EMA(C,8);<BR>graph0=c;<BR>graph0style=128;<BR>graph0barcolor=1;<BR>graph1=w;<BR>graph1barcolor=4;<BR>graph2=av;<BR>graph2style=1;<BR>graph2barcolor=14;</FONT></DIV>
<DIV><FONT face=Arial size=2><U></U></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><U>COLORED BARS</U></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Some articles&nbsp;prefer the histogram color to 
represent whether the </FONT></DIV>
<DIV><FONT face=Arial size=2>bar&nbsp;is an up bar (green) or a down bar 
(red).</FONT></DIV>
<DIV><FONT face=Arial size=2>You may see that also.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>/*Weighted Moving Average 
Difference(WMAD)*/</FONT></DIV>
<DIV><FONT face=Arial 
size=2>w=(20*c+15*ref(c,-1)+10*ref(c,-2)+5*ref(c,-3)+ref(c,-4))/51;<BR>AV=EMA(C,10);<BR>XD=100*(W-AV)/C;<BR>GRAPH2=XD;<BR>GRAPH2STYLE=2+4;<BR>GRAPH2BARCOLOR=iif(XD&gt;REF(XD,-1),5,4);<BR>GRAPH1BARCOLOR=iif(XD&gt;REF(XD,-1),5,4);</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Dimitris Tsokakis</FONT></DIV></BODY></HTML>

------=_NextPart_001_0012_01C1300E.97415080--

Attachment:
gif00151.gif

Attachment: Description: "Description: GIF image"